- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for setDefault (0.5 sec)
-
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 Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2K bytes - Viewed (0) -
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 Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.4K bytes - Viewed (0) -
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 Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.6K bytes - Viewed (0) -
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 Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.9K bytes - Viewed (0) -
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 Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmAuthenticator.java
} /** Set the default <tt>NtlmAuthenticator</tt>. Once the default authenticator is set it cannot be changed. Calling this metho again will have no effect. */ public synchronized static void setDefault( NtlmAuthenticator a ) { if( auth != null ) { return; } auth = a; } protected final String getRequestingURL() { return url; }
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 2.8K bytes - Viewed (0) -
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 Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmAuthenticator.java
* * @param a */ public synchronized static void setDefault ( NtlmAuthenticator a ) { if ( auth != null ) { return; } auth = a; } /** * * @return the default authentiucation credentials */ public static NtlmAuthenticator getDefault () { return auth; }
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/TimeConversionUtil.java
* デフォルロケールで{@link DateFormat#SHORT}スタイルのパターン文字列を返します。 * * @return {@link DateFormat#SHORT}スタイルのパターン文字列 */ public static String getShortPattern() { return getShortPattern(LocaleUtil.getDefault()); } /** * 指定されたロケールで{@link DateFormat#SHORT}スタイルのパターン文字列を返します。 * * @param locale * ロケール。{@literal null}であってはいけません
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 21.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/misc/LocaleUtilTest.java
/** * @author higa * */ public class LocaleUtilTest extends TestCase { /** * @throws Exception */ public void testGetLocale() throws Exception { assertEquals("1", LocaleUtil.getDefault(), LocaleUtil.getLocale(null)); assertEquals("2", Locale.JAPANESE, LocaleUtil.getLocale("ja")); assertEquals("3", Locale.JAPAN, LocaleUtil.getLocale("ja_JP")); }
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.1K bytes - Viewed (0)