Package org.mojavemvc.core

Examples of org.mojavemvc.core.MojaveRoute


        assertNotNull(initControllers);
        assertEquals(1, initControllers.size());
        assertEquals(TestStartupController.class, initControllers.iterator().next());
       
        assertEquals(12, rm.size());
        assertTrue(rm.contains(new MojaveRoute(null, null, null)));
        assertTrue(rm.contains(new MojaveRoute("test", null, null)));
        assertTrue(rm.contains(new MojaveRoute("test", "test1", null)));
        assertTrue(rm.contains(new MojaveRoute("test", "with-param", null)));
        assertTrue(rm.contains(new MojaveRoute("test", "another-param", null)));
        assertTrue(rm.contains(new MojaveRoute("test", "some-service", null)));
        assertTrue(rm.contains(new MojaveRoute("test", "test-annotation", null)));
        assertTrue(rm.contains(new MojaveRoute(null, "test1", null)));
        assertTrue(rm.contains(new MojaveRoute(null, "with-param", null)));
        assertTrue(rm.contains(new MojaveRoute(null, "another-param", null)));
        assertTrue(rm.contains(new MojaveRoute(null, "some-service", null)));
        assertTrue(rm.contains(new MojaveRoute(null, "test-annotation", null)));
    }
View Full Code Here


        ActionSignature beforeActionMethod = db.getBeforeActionMethodForInterceptor(ConcreteInterceptor.class);
        assertNotNull(beforeActionMethod);
        assertEquals("before", beforeActionMethod.methodName());
       
        assertEquals(1, rm.size());
        assertTrue(rm.contains(new MojaveRoute("interceptor4", "someAction", null)));
    }
View Full Code Here

        ActionSignature afterActionMethod = db.getAfterActionMethodForInterceptor(Interceptor1.class);
        assertNotNull(afterActionMethod);
        assertEquals("after", afterActionMethod.methodName());
       
        assertEquals(1, rm.size());
        assertTrue(rm.contains(new MojaveRoute("interceptor1", "someAction", null)));
    }
View Full Code Here

        afterActionMethod = db.getAfterActionMethodForInterceptor(Interceptor2.class);
        assertNotNull(afterActionMethod);
        assertEquals("after2", afterActionMethod.methodName());
       
        assertEquals(1, rm.size());
        assertTrue(rm.contains(new MojaveRoute("interceptor2", "someAction", null)));
    }
View Full Code Here

        afterActionMethod = db.getAfterActionMethodForInterceptor(Interceptor2.class);
        assertNotNull(afterActionMethod);
        assertEquals("after2", afterActionMethod.methodName());
       
        assertEquals(2, rm.size());
        assertTrue(rm.contains(new MojaveRoute("interceptor1", "someAction", null)));
        assertTrue(rm.contains(new MojaveRoute("interceptor2", "someAction", null)));
    }
View Full Code Here

        ActionSignature afterActionMethod = db.getAfterActionMethodForInterceptor(Interceptor1.class);
        assertNotNull(afterActionMethod);
        assertEquals("after", afterActionMethod.methodName());
       
        assertEquals(2, rm.size());
        assertTrue(rm.contains(new MojaveRoute("method-interceptor1", null, null)));
        assertTrue(rm.contains(new MojaveRoute("method-interceptor1", "someAction", null)));
    }
View Full Code Here

        afterActionMethod = db.getAfterActionMethodForInterceptor(Interceptor2.class);
        assertNotNull(afterActionMethod);
        assertEquals("after2", afterActionMethod.methodName());
       
        assertEquals(1, rm.size());
        assertTrue(rm.contains(new MojaveRoute("method-interceptor2", "someAction", null)));
    }
View Full Code Here

        afterActionMethod = db.getAfterActionMethodForInterceptor(Interceptor2.class);
        assertNotNull(afterActionMethod);
        assertEquals("after2", afterActionMethod.methodName());
       
        assertEquals(2, rm.size());
        assertTrue(rm.contains(new MojaveRoute("method-interceptor4", null, null)));
        assertTrue(rm.contains(new MojaveRoute("method-interceptor4", "someAction", null)));
    }
View Full Code Here

        afterActionMethod = db.getAfterActionMethodForInterceptor(Interceptor2.class);
        assertNotNull(afterActionMethod);
        assertEquals("after2", afterActionMethod.methodName());
       
        assertEquals(2, rm.size());
        assertTrue(rm.contains(new MojaveRoute("method-interceptor5", null, null)));
        assertTrue(rm.contains(new MojaveRoute("method-interceptor5", "someAction", null)));
    }
View Full Code Here

        afterActionMethod = db.getAfterActionMethodForInterceptor(Interceptor3.class);
        assertNotNull(afterActionMethod);
        assertEquals("after3", afterActionMethod.methodName());
       
        assertEquals(2, rm.size());
        assertTrue(rm.contains(new MojaveRoute("method-interceptor6", null, null)));
        assertTrue(rm.contains(new MojaveRoute("method-interceptor6", "someAction", null)));
    }
View Full Code Here

TOP

Related Classes of org.mojavemvc.core.MojaveRoute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.