Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for test_get (0.21 sec)

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

            } catch (final ClIndexOutOfBoundsException ex) {
                System.out.println(ex);
            }
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            assertThat(list.get(0), is("1"));
            assertThat(list.get(1), is("2"));
    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)
  2. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            assertThat(map.indexOf(null), is(0));
            assertThat(map.indexOf("test3"), is(-1));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            assertThat(map.get("1"), is("test"));
            assertThat(map.get(null), is(nullValue()));
            assertThat(map.get("test3"), is(nullValue()));
            assertThat(map.getAt(0), is(nullValue()));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanMapTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            final BeanMap map = new BeanMap();
            map.put("aaa", 1);
            map.put("bbb", 2);
            assertThat(map.get("aaa"), is((Object) 1));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet_NotContains() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

        /** */
        public static final int INT_DATA = 987654321;
    
        /** */
        public static final String STRING_DATA = "Hello World!";
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            final Field field = getClass().getField("objectField");
            final Integer testData = new Integer(123);
            FieldUtil.set(field, this, testData);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java

            assertThat(map.containsKey("one"), is(true));
            assertThat(map.containsKey("onex"), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGet() throws Exception {
            assertThat(map.get("ONE"), is("1"));
            assertThat(map.get("One"), is("1"));
            assertThat(map.get("hoge"), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(WildcardType.class.isInstance(GenericsUtil.getElementTypeOfList(t3)), is(true));
        }
    
        /**
         * @throws Exception
         */
        public void testSet() throws Exception {
            final Method m1 = SetType.class.getMethod("setOfString");
            final Type t1 = m1.getGenericReturnType();
            assertThat(GenericsUtil.isTypeOf(t1, Set.class), is(true));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top