Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for English (0.24 sec)

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

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testErrorMessage_en() throws Exception {
            // ## Arrange ##
            Locale.setDefault(Locale.ENGLISH);
            final NullArgumentException nullArgumentException = new NullArgumentException("hoge");
            assertThat(nullArgumentException.getArgName(), is("hoge"));
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/misc/LocaleUtil.java

        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 Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/exception/SQLRuntimeExceptionTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testErrorMessage_en() throws Exception {
            // ## Arrange ##
            Locale.setDefault(Locale.ENGLISH);
            final SQLException sqlException = new SQLException("manyReason", "barState", 1234);
    
            final SQLRuntimeException sqlRuntimeException = new SQLRuntimeException(sqlException);
    
            // ## Act ##
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top