@Test public void testSaveAndProceedNext_UnverifiedNewUser() { getAccountConfigurationData().getRoles().add(INVESTIGATOR); setUpGridSessionInformation(INVESTIGATOR.getGroupName()); assertEquals( VerificationPageFlowAction.FUNCTIONALITY_WARNING_RETURN, action.saveAndProceedNext()); }
@Test public void testSaveAndProceedNext_VerifiedRoles() { getAccountConfigurationData().getRoles().add(INVESTIGATOR); setUpGridSessionInformation(INVESTIGATOR.getGroupName(), INVESTIGATOR.getVerifiedGroupName()); assertEquals(VerificationPageFlowAction.USER_HOME_RETURN, action.saveAndProceedNext()); }
@Test public void testIsVerificationRequiredForRoles_UnverifiedInvestigator() { getAccountConfigurationData().getRoles().add(INVESTIGATOR); setUpGridSessionInformation(INVESTIGATOR.getGroupName()); assertEquals(true, action.isVerificationRequiredForRoles()); }