Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for 10 (0.24 sec)

  1. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("11:49:10");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:10"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_LongStyle() throws Exception {
            final Date date = toDate("11:49:10 JST");
            final SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            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);
            assertThat((Integer) beanDesc.newInstance(new BigDecimal(10)), is(10));
        }
    
        /**
         * @throws Exception
    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)
  3. src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java

            assertEquals(1, TimeoutManager.getInstance().getTimeoutTaskCount());
            TimeoutManager.getInstance().stop();
            assertNull(TimeoutManager.getInstance().thread);
            Thread.sleep(10);
            int count = expiredCount;
            task.stop();
            TimeoutManager.getInstance().start();
            assertNotNull(TimeoutManager.getInstance().thread);
            Thread.sleep(2000);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

            final String baseDirectory = path.substring(0, pos);
            ResourceTraversalUtil.forEach(rootDir, baseDirectory, (ResourceHandler) (path1, is) -> {
                try {
                    if (count < 10) {
                        System.out.println(path1);
                    }
                    assertThat(path1, is(notNullValue()));
                    assertThat(is, is(notNullValue()));
                    count++;
                } finally {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java

            assertEquals(new BigDecimal("1"), BigDecimalConversionUtil.toBigDecimal(Byte.valueOf((byte) 1)));
            assertEquals(new BigDecimal("10"), BigDecimalConversionUtil.toBigDecimal(Short.valueOf((short) 10)));
            assertEquals(new BigDecimal("100"), BigDecimalConversionUtil.toBigDecimal(Integer.valueOf(100)));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

        @Test
        public void testToDate_ShortStyle() throws Exception {
            System.out.println(((SimpleDateFormat) DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL)).toPattern());
            final Date date = toDate("10/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/FileUtil.java

        private static final String UTF8 = "UTF-8";
    
        /** Default Buffer Size */
        protected static final int DEFAULT_BUF_SIZE = 4096; // 4k
    
        /** Max Buffer Size */
        protected static final int MAX_BUF_SIZE = 10 * 1024 * 1024; // 10m
    
        /**
         * この抽象パス名の正規の形式を返します。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
         * @return この抽象パス名と同じファイルまたはディレクトリを示す正規パス名文字列
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

        //    }
    
        /**
         * @throws Exception
         */
        //    @Test
        //    public void testToDate_FullStyle() throws Exception {
        //        final Date date = toDate("2010年9月7日 11時49分10JST", Locale.JAPAN);
        //        final SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        //        df.setTimeZone(TimeZone.getTimeZone("JST"));
        //        assertThat(df.format(date), is("2010/09/07 11:49:10"));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/io/ClassTraversalTest.java

            final JarURLConnection con = (JarURLConnection) classURL.openConnection();
            ClassTraversalUtil.forEach(con.getJarFile(), (ClassHandler) (packageName, shortClassName) -> {
                if (count < 10) {
                    System.out.println(ClassUtil.concatName(packageName, shortClassName));
                }
                assertThat(packageName, is(notNullValue()));
                assertThat(shortClassName, is(notNullValue()));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/misc/Base64Util.java

            final int i = ((inData[inIndex] & 0xff) << 8) + (inData[inIndex + 1] & 0xff);
            outData[outIndex] = ENCODE_TABLE[i >> 10];
            outData[outIndex + 1] = ENCODE_TABLE[i >> 4 & 0x3f];
            outData[outIndex + 2] = ENCODE_TABLE[i << 2 & 0x3f];
            outData[outIndex + 3] = PAD;
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.3K bytes
    - Viewed (0)
Back to top