NIHVIVO-142 Add/edit/delete blurb on front end

This commit is contained in:
rjy7 2010-03-23 17:28:11 +00:00
parent bcbe290c51
commit 54c5019347
4 changed files with 98 additions and 47 deletions

View file

@ -71,4 +71,14 @@ public class StringUtilsTest extends AbstractTestClass {
Assert.assertEquals("\"apple\"|\"banana\"|\"orange\"", StringUtils.quotedList(stringList, "|"));
Assert.assertEquals("\"apple\",\"banana\",\"orange\"", StringUtils.quotedList(stringList, null));
}
@Test
public void testEqualsOneOf() {
String s1 = "cat";
Assert.assertTrue(StringUtils.equalsOneOf(s1, "dog", "mouse", "cat", "horse"));
Assert.assertTrue(StringUtils.equalsOneOf(s1, "cat"));
Assert.assertFalse(StringUtils.equalsOneOf(s1, "dog", "mouse", "horse"));
Assert.assertFalse(StringUtils.equalsOneOf(s1));
}
}