@Test public void testEnter_NoSubinvestigatorId() { action.setPersonAssociation(null); thrown.expect(NullPointerException.class); thrown.expectMessage("No Person Association selected for removal."); action.enter(); }
@Test public void testEnter_NoProfile() { action.setProfile(null); thrown.expect(NullPointerException.class); thrown.expectMessage( "User Profile does not exist! You must create a user profile before editing an person."); action.enter(); }
@Test public void testEnter_SubInvestigator() { assertEquals(ActionSupport.SUCCESS, action.enter()); }