示例#1
0
 @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);
   }
 }
示例#2
0
 @Test
 public void testDescriptionEmpty() {
   validTrial.setDescription("");
   assertEquals("", validTrial.getDescription());
   assertValid(validTrial);
 }
示例#3
0
 @Test
 public void testDescriptionNull() {
   validTrial.setDescription(null);
   assertNull(validTrial.getDescription());
   assertValid(validTrial);
 }