Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testToCalendar_ShortStyle (2.38 sec)

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

        public void testToCalendar_EmptyString() throws Exception {
            assertThat(toCalendar(""), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_ShortStyle() throws Exception {
            final Calendar calendar = toCalendar("10/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

        public void testToCalendar_EmptyString() throws Exception {
            assertThat(toCalendar(""), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_ShortStyle() throws Exception {
            final Calendar calendar = toCalendar("11:49");
            assertThat(new SimpleDateFormat("HH:mm:ss").format(calendar.getTime()), is("11:49:00"));
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

            assertThat(toCalendar("", Locale.JAPAN), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_ShortStyle() throws Exception {
            final Calendar calendar = toCalendar("10/9/7 11:49", Locale.JAPAN);
            assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(calendar.getTime()), is("2010/09/07 11:49:00"));
        }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top