Package in.partake.controller

Examples of in.partake.controller.ActionProxy.execute()


    @Test
    public void testToExecute() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/contact");
        loginAs(proxy, TestDataProvider.DEFAULT_USER_ID);

        proxy.execute();
        assertResultSuccess(proxy);
    }

    @Test
    public void testToExecuteWithoutLogin() throws Exception {
View Full Code Here


    @Test
    public void testToExecuteWithoutLogin() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/contact");

        proxy.execute();
        assertResultSuccess(proxy);
    }
}
View Full Code Here

    @Test
    public void testToExecute() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/");
        loginAs(proxy, TestDataProvider.DEFAULT_USER_ID);

        proxy.execute();
        assertResultSuccess(proxy);
    }

    @Test
    public void testToExecuteWithoutLogin() throws Exception {
View Full Code Here

    @Test
    public void testToExecuteWithoutLogin() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/");

        proxy.execute();
        assertResultSuccess(proxy);
    }
}
View Full Code Here

    @Test
    public void testToExecute() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/termofuse");
        loginAs(proxy, TestDataProvider.DEFAULT_USER_ID);

        proxy.execute();
        assertResultSuccess(proxy);
    }

    @Test
    public void testToExecuteWithoutLogin() throws Exception {
View Full Code Here

    @Test
    public void testToExecuteWithoutLogin() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/termofuse");

        proxy.execute();
        assertResultSuccess(proxy);
    }
}
View Full Code Here

public class CategoryCalendarTest extends ActionControllerTest {

    @Test
    public void testWithValidCategory() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/calendars/category/" + EventCategory.getCategories().get(0).getKey());
        proxy.execute();

        assertThat(Helpers.contentType(proxy.getResult()), is("text/calendar"));
        assertThat(Helpers.charset(proxy.getResult()), is("utf-8"));
        assertThat(Helpers.header("Content-Disposition", proxy.getResult()), is("inline"));
View Full Code Here

    }

    @Test
    public void testWithInvalidCategory() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/calendars/category/invalidCateogry");
        proxy.execute();

        assertResultNotFound(proxy);
    }
}
View Full Code Here

public class ShowCalendarTest extends ActionControllerTest {

    @Test
    public void testWithValidCalendarId() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/calendars/" + ENROLLED_USER_CALENDAR_ID);
        proxy.execute();

        assertThat(Helpers.contentType(proxy.getResult()), is("text/calendar"));
        assertThat(Helpers.charset(proxy.getResult()), is("utf-8"));
        assertThat(Helpers.header("Content-Disposition", proxy.getResult()), is("inline"));
View Full Code Here

   }

    @Test
    public void testWithInvalidCalendarId() throws Exception {
        ActionProxy proxy = getActionProxy(GET, "/calendars/" + INVALID_CALENDAR_ID);
        proxy.execute();

        assertResultNotFound(proxy);
    }
}
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.