Logger.getRootLogger().setLevel(logLevel);
}
public void testJoin() throws Exception {
mockSession.find3Return = new ArrayList();
mockSession.find3Return.add(new Integration());
support.request.setParameterValue("action.join", new String[]{""});
support.request.setParameterValue("personId", new String[]{"1"});
support.request.setParameterValue("comment", new String[]{"a comment"});
replay();
ActionForward forward = support.executeAction(action);
verify();
assertEquals(addProjectId("DISPLAY"), forward.getPath());
assertTrue("no integration saved", mockSession.saveCalled);
Integration integration = (Integration)mockSession.saveObject;
assertEquals(PROJECT_ID, integration.getProjectId());
assertEquals(1, integration.getPersonId());
assertEquals("a comment", integration.getComment());
assertEquals(Integration.PENDING, integration.getState());
assertNotNull(integration.getWhenRequested());
assertNull(integration.getWhenStarted());
assertNull(integration.getWhenComplete());
assertCommit();
}