コード例 #1
0
 @Test
 public void testSaveAndProceedNext_UnverifiedNewUser() {
   getAccountConfigurationData().getRoles().add(INVESTIGATOR);
   setUpGridSessionInformation(INVESTIGATOR.getGroupName());
   assertEquals(
       VerificationPageFlowAction.FUNCTIONALITY_WARNING_RETURN, action.saveAndProceedNext());
 }
コード例 #2
0
 @Test
 public void testSaveAndProceedNext_VerifiedRoles() {
   getAccountConfigurationData().getRoles().add(INVESTIGATOR);
   setUpGridSessionInformation(INVESTIGATOR.getGroupName(), INVESTIGATOR.getVerifiedGroupName());
   assertEquals(VerificationPageFlowAction.USER_HOME_RETURN, action.saveAndProceedNext());
 }
コード例 #3
0
 @Test
 public void testIsVerificationRequiredForRoles_UnverifiedInvestigator() {
   getAccountConfigurationData().getRoles().add(INVESTIGATOR);
   setUpGridSessionInformation(INVESTIGATOR.getGroupName());
   assertEquals(true, action.isVerificationRequiredForRoles());
 }