Renamed tests.

This commit is contained in:
Christian P. MOMON 2017-12-26 00:58:58 +01:00
parent 23741df091
commit 03ca464d95

View file

@ -173,6 +173,20 @@ public class StringsUtilsTest
Assert.assertTrue(StringsUtils.containsNull(source)); Assert.assertTrue(StringsUtils.containsNull(source));
} }
@Test
public void testEqualsAny01()
{
Assert.assertTrue(StringsUtils.equalsAny("abc", "aaa", "bbb", "abc"));
Assert.assertFalse(StringsUtils.equalsAny("abc", "aaa", "bbb", "aBc"));
}
@Test
public void testEqualsAnyIgnoreCase01()
{
Assert.assertTrue(StringsUtils.equalsAnyIgnoreCase("abc", "aaa", "bbb", "abc"));
Assert.assertTrue(StringsUtils.equalsAnyIgnoreCase("abc", "aaa", "bbb", "aBc"));
}
/** /**
* Test find smallest 01. * Test find smallest 01.
*/ */
@ -189,18 +203,4 @@ public class StringsUtilsTest
source.set(1, null); source.set(1, null);
Assert.assertTrue(StringsUtils.containsNull(source)); Assert.assertTrue(StringsUtils.containsNull(source));
} }
@Test
public void testIsContained01()
{
Assert.assertTrue(StringsUtils.equalsAny("abc", "aaa", "bbb", "abc"));
Assert.assertFalse(StringsUtils.equalsAny("abc", "aaa", "bbb", "aBc"));
}
@Test
public void testIsContainedIgnoreCase01()
{
Assert.assertTrue(StringsUtils.equalsAnyIgnoreCase("abc", "aaa", "bbb", "abc"));
Assert.assertTrue(StringsUtils.equalsAnyIgnoreCase("abc", "aaa", "bbb", "aBc"));
}
} }