@@ -26,11 +26,11 @@ public void setup() {
2626 public void shouldMatchHttpGetAndPostOnSamePath () throws ApplicationException {
2727 ActionRegistry registry = ActionRegistry .getInstance ();
2828
29- Action getAction = registry .getAction ("hello" , Action .Mode .HTTP_GET );
29+ Action getAction = registry .getAction ("hello" , org . tinystruct . system . annotation . Action .Mode .HTTP_GET );
3030 assertNotNull (getAction , "GET action should be resolved" );
3131 assertEquals ("GET" , String .valueOf (getAction .execute ()));
3232
33- Action postAction = registry .getAction ("hello" , Action .Mode .HTTP_POST );
33+ Action postAction = registry .getAction ("hello" , org . tinystruct . system . annotation . Action .Mode .HTTP_POST );
3434 assertNotNull (postAction , "POST action should be resolved" );
3535 assertEquals ("POST" , String .valueOf (postAction .execute ()));
3636 }
@@ -56,14 +56,14 @@ public void shouldRespectModeFilterWhenProvided() throws ApplicationException {
5656 ActionRegistry registry = ActionRegistry .getInstance ();
5757
5858 // With explicit mode filter
59- Action a = registry .getAction ("hello" , Action .Mode .HTTP_GET );
59+ Action a = registry .getAction ("hello" , org . tinystruct . system . annotation . Action .Mode .HTTP_GET );
6060 assertNotNull (a );
61- assertEquals (Action .Mode .HTTP_GET , a .getMode ());
61+ assertEquals (org . tinystruct . system . annotation . Action .Mode .HTTP_GET , a .getMode ());
6262
6363 // Mismatched filter returns best available action but not HTTP_PUT
64- Action b = registry .getAction ("hello" , Action .Mode .HTTP_PUT );
64+ Action b = registry .getAction ("hello" , org . tinystruct . system . annotation . Action .Mode .HTTP_PUT );
6565 assertNotNull (b );
66- assertNotEquals (Action .Mode .HTTP_PUT , b .getMode ());
66+ assertNotEquals (org . tinystruct . system . annotation . Action .Mode .HTTP_PUT , b .getMode ());
6767 }
6868
6969 private static class TestWebApp extends AbstractApplication {
@@ -72,17 +72,17 @@ public void init() {
7272 this .setTemplateRequired (false );
7373 }
7474
75- @ org .tinystruct .system .annotation .Action (value = "hello" , description = "GET hello" , mode = Action .Mode .HTTP_GET )
75+ @ org .tinystruct .system .annotation .Action (value = "hello" , description = "GET hello" , mode = org . tinystruct . system . annotation . Action .Mode .HTTP_GET )
7676 public String helloGet () {
7777 return "GET" ;
7878 }
7979
80- @ org .tinystruct .system .annotation .Action (value = "hello" , description = "POST hello" , mode = Action .Mode .HTTP_POST )
80+ @ org .tinystruct .system .annotation .Action (value = "hello" , description = "POST hello" , mode = org . tinystruct . system . annotation . Action .Mode .HTTP_POST )
8181 public String helloPost () {
8282 return "POST" ;
8383 }
8484
85- @ org .tinystruct .system .annotation .Action (value = "ping" , description = "Ping" , mode = Action .Mode .DEFAULT )
85+ @ org .tinystruct .system .annotation .Action (value = "ping" , description = "Ping" , mode = org . tinystruct . system . annotation . Action .Mode .DEFAULT )
8686 public String ping () {
8787 return "pong" ;
8888 }
0 commit comments