- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for testContains (0.3 sec)
-
src/test/java/org/codelibs/core/collection/CaseInsensitiveSetTest.java
import java.util.Set; import org.junit.Test; /** * @author higa */ public class CaseInsensitiveSetTest { /** * @throws Exception */ @Test public void testContains() throws Exception { final Set<String> set = new CaseInsensitiveSet(); set.add("one"); assertThat(set.contains("ONE"), is(true)); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayUtilTest.java
assertFalse(ArrayUtil.isEmpty(new Object[] { "" })); assertFalse(ArrayUtil.isEmpty(new Object[] { "aaa" })); } /** * @throws Exception */ @Test public void testContains() throws Exception { assertThat(ArrayUtil.contains(new Object[] { "1" }, "1"), is(true)); assertThat(ArrayUtil.contains(new Object[] { "1" }, "2"), is(not(true)));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 10.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/StringUtilTest.java
*/ @Test public void testContains() throws Exception { assertEquals("1", true, StringUtil.contains("a", 'a')); assertEquals("2", true, StringUtil.contains("abc", 'b')); assertEquals("3", false, StringUtil.contains("abc", 'd')); } /** * @throws Exception */ @Test public void testContains2() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 12K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
assertThat(list.isEmpty(), is(true)); list.addLast("1"); assertThat(list.isEmpty(), is(not(true))); } /** * @throws Exception */ @Test public void testContaines() throws Exception { assertThat(list.contains(null), is(not(true))); assertThat(list.contains("1"), is(not(true))); list.addLast("1"); assertThat(list.contains("1"), is(true));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8.3K bytes - Viewed (0)