Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,249 for valueOf (1.61 sec)

  1. src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java

            assertThat(converter.getAsObject("100"), is((Object) Long.valueOf("100")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetAsString() throws Exception {
            final NumberConverter converter = new NumberConverter("##0");
            assertThat(converter.getAsString(Integer.valueOf("100")), is("100"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. 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 = Integer.valueOf(123);
            FieldUtil.set(field, this, testData);
            assertThat((Integer) FieldUtil.get(field, this), is(testData));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final MyBean myBean = new MyBean();
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final PropertyDesc propDesc = beanDesc.getPropertyDesc("ggg");
            propDesc.setValue(myBean, Integer.valueOf(1));
            assertThat(myBean.getGgg(), is(new BigDecimal(1)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testSetTimestampValue() throws Exception {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

            } else if (o instanceof String) {
                return toShort((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return Short.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (short) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (short) 1 : (short) 0;
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RequestDataTest.java

            assertEquals(Method.POST, Method.valueOf("POST"));
            assertEquals(Method.HEAD, Method.valueOf("HEAD"));
        }
    
        public void test_complexScenario() {
            // Test a complex scenario with multiple operations
            RequestData data = new RequestData();
    
            // Set values
            data.setMethod("POST");
            data.setUrl("https://api.example.com/endpoint");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/IntegerConversionUtilTest.java

    /**
     * @author higa
     *
     */
    public class IntegerConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToInteger() throws Exception {
            assertEquals(Integer.valueOf("1000"), IntegerConversionUtil.toInteger("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveInt() throws Exception {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

                assertTrue(source.get("field1").toString().startsWith("test"));
                valueSet.add(source.get("field1").toString());
                count++;
            }
            assertTrue(String.valueOf(count), count < 200);
        }
    
        @Test
        public void test_ReadMultiThread() throws Exception {
            int threadNum = new Random().nextInt(20) + 1;
            System.out.println("Thread num:" + threadNum);
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sun Nov 23 13:04:17 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/convert/LongConversionUtilTest.java

    /**
     * @author higa
     *
     */
    public class LongConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToLong() throws Exception {
            assertEquals(Long.valueOf("1000"), LongConversionUtil.toLong("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveLong() throws Exception {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/util/StringUtilTest.java

            String result = StringUtil.join("-", "", null, "value", "", null);
            // First: "" (sb becomes "")
            // Second: sb.length() is 0, no delimiter, append null (sb becomes "null")
            // Third: sb.length() > 0, add "-" + "value" (sb becomes "null-value")
            // Fourth: sb.length() > 0, add "-" + "" (sb becomes "null-value-")
            // Fifth: sb.length() > 0, add "-" + null (sb becomes "null-value--null")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

            assertThat(new CopyOptions().convertValue(Integer.valueOf(1), "aaa", null), is((Object) 1));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testConvertValue_propertyConverter_asString() throws Exception {
            assertThat(new CopyOptions().converter(new NumberConverter("##0"), "aaa").convertValue(Integer.valueOf(1), "aaa", null),
                    is((Object) "1"));
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top