Search in sources :

Example 1 with AdminAccountManagementPageAction

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

the class AdminAccountManagementPageActionTest method testExecuteAndPostProcess.

@Override
@Test
public void testExecuteAndPostProcess() {
    ______TS("case: view admin acount management page");
    String[] submissionParams = new String[] {};
    final String adminUserId = "admin.user";
    gaeSimulation.loginAsAdmin(adminUserId);
    AdminAccountManagementPageAction action = getAction(submissionParams);
    ShowPageResult result = getShowPageResult(action);
    assertEquals("", result.getStatusMessage());
    assertEquals(getPageResultDestination(Const.ViewURIs.ADMIN_ACCOUNT_MANAGEMENT, false, adminUserId), result.getDestinationWithParams());
    assertFalse(result.isError);
}
Also used : ShowPageResult(teammates.ui.controller.ShowPageResult) AdminAccountManagementPageAction(teammates.ui.controller.AdminAccountManagementPageAction) Test(org.testng.annotations.Test)

Aggregations

Test (org.testng.annotations.Test)1 AdminAccountManagementPageAction (teammates.ui.controller.AdminAccountManagementPageAction)1 ShowPageResult (teammates.ui.controller.ShowPageResult)1