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());
}
Aggregations