예제 #1
0
 @Test
 public void updateTeam() {
   Team team = new Team();
   team.setId(1L);
   team.setName("TestTeam");
   team.setNumOfUsers(5L);
   team.setTeamRole(1L);
   team.setUserName("test");
   team.setIdCreator(0L);
   service.saveTeam(team, 1L, 1L);
 }
예제 #2
0
 /** Save empty team */
 @Test(expected = DataIntegrityViolationException.class)
 public void updateTeam2() {
   Team team = new Team();
   team.setId(1L);
   service.saveTeam(team, 1L, 1L);
 }