Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for setDefault (0.2 sec)

  1. src/test/java/org/codelibs/core/exception/NullArgumentExceptionTest.java

        public void setUp() throws Exception {
            LocaleUtil.setDefault(() -> Locale.JAPANESE);
        }
    
        @After
        public void tearDown() throws Exception {
            LocaleUtil.setDefault(null);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testErrorMessage_ja() throws Exception {
            // ## Arrange ##
            Locale.setDefault(Locale.JAPANESE);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

        /**
         * @throws Exception
         */
        @Before
        public void setUp() throws Exception {
            TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
        }
    
        /**
         * @throws Exception
         */
        @After
        public void tearDown() throws Exception {
            TimeZone.setDefault(null);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/message/MessageFormatterTest.java

    /**
     * @author higa
     */
    public class MessageFormatterTest {
    
        @Before
        public void setUp() throws Exception {
            LocaleUtil.setDefault(() -> Locale.JAPANESE);
        }
    
        @After
        public void tearDown() throws Exception {
            LocaleUtil.setDefault(null);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetMessage() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/misc/LocaleUtil.java

            return locale;
        }
    
        private static Supplier<Locale> defaultLocaleSupplier;
    
        public static Locale getDefault() {
            if (defaultLocaleSupplier != null) {
                return defaultLocaleSupplier.get();
            }
            return Locale.ENGLISH;
        }
    
        public static void setDefault(final Supplier<Locale> localeSupplier) {
            defaultLocaleSupplier = localeSupplier;
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java

            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        new NullPointerTester()
            .setDefault(Class.class, Color.class)
            .setDefault(Iterable.class, EnumSet.allOf(Color.class))
            .testAllPublicStaticMethods(EnumMultiset.class);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/exception/SQLRuntimeExceptionTest.java

        public void setUp() throws Exception {
            LocaleUtil.setDefault(() -> Locale.JAPANESE);
        }
    
        @After
        public void tearDown() throws Exception {
            LocaleUtil.setDefault(null);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testErrorMessage_ja() throws Exception {
            // ## Arrange ##
            Locale.setDefault(Locale.JAPANESE);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

    /**
     * @author higa
     */
    public class TimeConversionUtilTest {
    
        @Before
        public void setUp() throws Exception {
            LocaleUtil.setDefault(() -> Locale.JAPANESE);
        }
    
        @After
        public void tearDown() throws Exception {
            LocaleUtil.setDefault(null);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_Null() throws Exception {
    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)
  8. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        new NullPointerTester()
            .setDefault(Class.class, Color.class)
            .setDefault(Iterable.class, EnumSet.allOf(Color.class))
            .testAllPublicStaticMethods(EnumMultiset.class);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

    /**
     * @author higa
     */
    public class DateConversionUtilTest {
    
        @Before
        public void setUp() throws Exception {
            LocaleUtil.setDefault(() -> Locale.JAPANESE);
        }
    
        @After
        public void tearDown() throws Exception {
            LocaleUtil.setDefault(null);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_Null() 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)
  10. maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedConfigurationConverter.java

                if (null == value) {
                    processConfiguration(lookup, bean, loader, configuration, evaluator, listener);
                } else {
                    new CompositeBeanHelper(lookup, loader, evaluator, listener).setDefault(bean, value, configuration);
                }
                return bean;
            } catch (final ComponentConfigurationException e) {
                if (null == e.getFailedConfiguration()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top