Examples of StrutsActions


Examples of by.shade.strutsannotations.StrutsActions

public class StrutsActionsTest {

    @Test
    public void testDefaultAnnotation() {
        Class<EmptyClassAction> action = EmptyClassAction.class;
        StrutsActions sa = action.getAnnotation(StrutsActions.class);
        assertEquals(1, sa.value().length);
        assertAction("/emptyClass", "", action, sa.value()[0]);
    }
View Full Code Here

Examples of by.shade.strutsannotations.StrutsActions

    }

    @Test
    public void testTwoSubAnnotations() {
        Class<TestClassAction> action = TestClassAction.class;
        StrutsActions sa = action.getAnnotation(StrutsActions.class);
        assertEquals(2, sa.value().length);
        assertAction("/path1", "method1", action, sa.value()[0]);
        assertAction("/path2", "method2", action, sa.value()[1]);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.