Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 347 for Integer (0.26 sec)

  1. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

         * @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);
            assertThat((Integer) FieldUtil.get(field, this), is(testData));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetIntField() throws Exception {
    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)
  2. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

         *
         */
        @Test
        public void testIsAssignableFrom() {
            assertThat(ClassUtil.isAssignableFrom(Number.class, Integer.class), is(true));
            assertThat(ClassUtil.isAssignableFrom(Integer.class, Number.class), is(not(true)));
            assertThat(ClassUtil.isAssignableFrom(int.class, Integer.class), is(true));
        }
    
        /**
         *
         */
        @Test
        public void testGetPackageName() {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

        public void testToObjectArray() throws Exception {
            final Object[] a = ArrayUtil.toObjectArray(new int[] { 1, 5, 2 });
            assertArrayEquals(new Integer[] { new Integer(1), new Integer(5), new Integer(2) }, a);
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = IllegalArgumentException.class)
        public void testToObjectArray_NoArray() throws Exception {
            ArrayUtil.toObjectArray("a");
        }
    
    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)
  4. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

      }
    
      public void testComplexBuilder() {
        List<Integer> colorElem = asList(0x00, 0x33, 0x66, 0x99, 0xCC, 0xFF);
        ImmutableList.Builder<Integer> webSafeColorsBuilder = ImmutableList.builder();
        for (Integer red : colorElem) {
          for (Integer green : colorElem) {
            for (Integer blue : colorElem) {
              webSafeColorsBuilder.add((red << 16) + (green << 8) + blue);
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TablesTest.java

        Cell<String, Integer, Character> entry = Tables.immutableCell("foo", 1, 'a');
        SerializableTester.reserializeAndAssert(entry);
      }
    
      public void testImmutableEntryToString() {
        Cell<String, Integer, Character> entry = Tables.immutableCell("foo", 1, 'a');
        assertEquals("(foo,1)=a", entry.toString());
    
        Cell<@Nullable String, @Nullable Integer, @Nullable Character> nullEntry =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            final BeanDesc beanDesc = new BeanDescImpl(Integer.class);
            assertThat((Integer) beanDesc.newInstance(10), is(10));
            assertThat((Integer) beanDesc.newInstance("10"), is(10));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testNewInstance2() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(Integer.class);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_nested_models/test_tutorial009.py

                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "__key__"],
                        "msg": "value is not a valid integer",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

        super(true, true, true, true, true);
      }
    
      @Override
      protected SortedMap<String, Integer> makeEmptyMap() {
        return new SimpleForwardingSortedMap<>(
            new TreeMap<String, Integer>(Ordering.<String>natural().nullsFirst()));
      }
    
      @Override
      protected SortedMap<String, Integer> makePopulatedMap() {
        final SortedMap<String, Integer> sortedMap = makeEmptyMap();
        sortedMap.put("one", 1);
        sortedMap.put("two", 2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactoryTest.java

         * @author koichik
         */
        public interface Hoge {
    
            /** */
            public static Map<String, Set<Integer>[]> foo = null;
    
            /**
             * @param arg1
             * @param arg2
             * @return List
             */
            List<String> foo(Set<Integer> arg1, Map<String, Integer> arg2);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_body_nested_models/test_tutorial009_py39.py

                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "__key__"],
                        "msg": "value is not a valid integer",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top