Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testIndexOf (0.12 sec)

  1. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            map.put("3", null);
            assertThat(map.containsKey("3"), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIndexOf() throws Exception {
            assertThat(map.indexOf("test"), is(1));
            assertThat(map.indexOf(null), is(0));
            assertThat(map.indexOf("test3"), is(-1));
        }
    
        /**
         * @throws Exception
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            assertThat(newArray.length, is(2));
            assertThat(newArray[0], is(1));
            assertThat(newArray[1], is(2));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIndexOf() throws Exception {
            final String[] array = new String[] { "111", "222", "333", "222" };
            assertThat(ArrayUtil.indexOf(array, "222"), is(1));
            assertThat(ArrayUtil.indexOf(array, "222", 2), is(3));
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top