@Test public void addCleanIDDoesNotAddEmptyString() { List<String> list = new ArrayList<String>(); webGroupDao.addCleanID("", list); assertEquals(0, list.size()); }
@Test public void addCleanIDAddsID() { List<String> list = new ArrayList<String>(); webGroupDao.addCleanID(group1, list); assertEquals(1, list.size()); assertTrue(list.contains(group1)); }
@Test public void addCleanIDDoesCleansWhitespace() { List<String> list = new ArrayList<String>(); webGroupDao.addCleanID(" 1 ", list); assertEquals(1, list.size()); assertTrue(list.contains("1")); }