@Test public void testDescriptionAnyLengt() { String[] validValues = { stringUtil.getWithLength(8941), stringUtil.getWithLength(2), stringUtil.getWithLength(10000000) }; for (String s : validValues) { validTrial.setDescription(s); assertEquals(s, validTrial.getDescription()); assertValid(validTrial); } }
@Test public void testDescriptionEmpty() { validTrial.setDescription(""); assertEquals("", validTrial.getDescription()); assertValid(validTrial); }
@Test public void testDescriptionNull() { validTrial.setDescription(null); assertNull(validTrial.getDescription()); assertValid(validTrial); }