/** Test saveSingleTeamTag with null tag */ @Test public void testSaveSingleTeamTagWithNullTag() { Client client = createClient(); Team team1 = createTeam(client); team1.setId(1l); assertThat("null was returned", teamTagService.saveSingleTeamTag(team1, null), is(nullValue())); }
private Team createTeam(Client client) { Team team = new Team(); team.setName("Test Team" + RandomStringUtils.randomAlphanumeric(18)); team.setDescription("Test Team description"); team.setActive(true); team.setClient(client); team.setSalesForceAccount(new TeamSalesForce(RandomStringUtils.randomAlphanumeric(18))); teamService.create(team); return team; }