NIHVIVO-142 Add/edit/delete blurb on front end
This commit is contained in:
parent
bcbe290c51
commit
54c5019347
4 changed files with 98 additions and 47 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue