Package net.paoding.rose.mock.controllers.methodparameter.MethodParameter2Controller

Examples of net.paoding.rose.mock.controllers.methodparameter.MethodParameter2Controller.User


        assertNotNull(parameters);
        assertNotNull(parameters[0]);

        assertTrue("unexpected type " + parameters[0].getClass().getName(),
                parameters[0] instanceof User);
        User user = (User) parameters[0];
        assertEquals(Long.valueOf(12), user.getId());
        assertEquals("rose", user.getName());
        assertEquals(20, user.getAge());

    }
View Full Code Here


        assertNotNull(parameters[0]);
        assertNotNull(parameters[1]);

        assertTrue("unexpected type " + parameters[0].getClass().getName(),
                parameters[0] instanceof User);
        User ua = (User) parameters[0];
        assertEquals(Long.valueOf(12), ua.getId());
        assertEquals("rose", ua.getName());
        assertEquals(20, ua.getAge());

        assertTrue("unexpected type " + parameters[1].getClass().getName(),
                parameters[1] instanceof User);
        User ub = (User) parameters[1];
        assertEquals(Long.valueOf(13), ub.getId());
        assertNull(ub.getName());
        assertEquals(0, ub.getAge());

    }
View Full Code Here

        assertNotNull(parameters[0]);
        assertNotNull(parameters[1]);

        assertTrue("unexpected type " + parameters[0].getClass().getName(),
                parameters[0] instanceof User);
        User ua = (User) parameters[0];
        assertEquals(Long.valueOf(42), ua.getId());
        assertEquals("rose", ua.getName());
        assertEquals(20, ua.getAge());

        assertTrue("unexpected type " + parameters[1].getClass().getName(),
                parameters[1] instanceof BindingResult);
    }
View Full Code Here

TOP

Related Classes of net.paoding.rose.mock.controllers.methodparameter.MethodParameter2Controller.User

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.