* @throws Exception
*/
@Test
public void testCreateScienceProjectWithPartner() throws Exception {
CreateScienceProjectVo cspVo = new CreateScienceProjectVo();
cspVo.setCreator("1");
cspVo.setPartner("2");
cspVo.setSponsor("3");
cspVo.setCategory("biology");
SeteUser creator = new SeteUser();
creator.setId(Integer.valueOf(cspVo.getCreator()));
SeteUser partner = new SeteUser();
partner.setId(Integer.valueOf(cspVo.getPartner()));
SeteUser sponsor = new SeteUser();
sponsor.setId(Integer.valueOf(cspVo.getSponsor()));
EasyMock.expect(mockScienceProjectDao.isStudentInAnotherProject(
Integer.valueOf(cspVo.getCreator()))).andReturn(Boolean.FALSE);
EasyMock.expect(mockUserDao.findById(Integer.valueOf(cspVo.getCreator()))).andReturn(creator);
EasyMock.expect(mockScienceProjectDao.isStudentInAnotherProject(
Integer.valueOf(cspVo.getPartner()))).andReturn(Boolean.FALSE);
EasyMock.expect(mockUserDao.findById(Integer.valueOf(cspVo.getPartner()))).andReturn(partner);
EasyMock.expect(mockUserDao.findById(Integer.valueOf(cspVo.getSponsor()))).andReturn(sponsor);
mockScienceProjectDao.saveScienceProject((ScienceProject)EasyMock.anyObject());
EasyMock.expectLastCall();
EasyMock.replay(mockScienceProjectDao);