Search in sources :

Example 1 with AdminHomePageAction

use of teammates.ui.controller.AdminHomePageAction in project teammates by TEAMMATES.

the class AdminHomePageActionTest method testExecuteAndPostProcess.

@Override
@Test
public void testExecuteAndPostProcess() {
    ______TS("Normal case: starting with a blank adminHome page");
    final String adminUserId = "admin.user";
    gaeSimulation.loginAsAdmin(adminUserId);
    final AdminHomePageAction a = getAction();
    final ShowPageResult result = getShowPageResult(a);
    assertEquals(Const.ViewURIs.ADMIN_HOME, result.destination);
    final AdminHomePageData startingPageData = (AdminHomePageData) result.data;
    assertEquals("", startingPageData.instructorEmail);
    assertEquals("", startingPageData.instructorInstitution);
    assertEquals("", startingPageData.instructorName);
    assertEquals("", result.getStatusMessage());
}
Also used : AdminHomePageAction(teammates.ui.controller.AdminHomePageAction) ShowPageResult(teammates.ui.controller.ShowPageResult) AdminHomePageData(teammates.ui.pagedata.AdminHomePageData) Test(org.testng.annotations.Test)

Aggregations

Test (org.testng.annotations.Test)1 AdminHomePageAction (teammates.ui.controller.AdminHomePageAction)1 ShowPageResult (teammates.ui.controller.ShowPageResult)1 AdminHomePageData (teammates.ui.pagedata.AdminHomePageData)1