- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for get$default (0.19 sec)
-
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 {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeJvmTest.kt
} } private fun <T> withLocale( locale: Locale, block: () -> T, ): T { val previous = Locale.getDefault() try { Locale.setDefault(locale) return block() } finally { Locale.setDefault(previous) } } @Test fun testIllegalCharsetName() { val mediaType = parse("text/plain; charset=\"!@#$%^&*()\"")
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/LocaleUtil.java
*/ public static Locale getDefault() { if (defaultLocaleSupplier != null) { return defaultLocaleSupplier.get(); } return Locale.ENGLISH; } /** * Sets the default locale supplier. * * @param localeSupplier * the supplier for the default locale */ public static void setDefault(final Supplier<Locale> localeSupplier) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmAuthenticator.java
*/ public synchronized static void setDefault(final NtlmAuthenticator a) { if (auth != null) { return; } auth = a; } /** * Gets the default NTLM authenticator. * @return the default authentication credentials provider */ public static NtlmAuthenticator getDefault() { return auth; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpDateTest.kt
@BeforeEach fun setUp() { originalDefault = TimeZone.getDefault() // The default timezone should affect none of these tests: HTTP specified GMT, so we set it to // something else. TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")) } @AfterEach @Throws(Exception::class) fun tearDown() { TimeZone.setDefault(originalDefault) } @Test @Throws(Exception::class)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java
assertEquals( "getOrDefault(present, def) should return the associated value", v0(), getMap().getOrDefault(k0(), v3())); } @CollectionSize.Require(absent = ZERO) public void testGetOrDefault_presentNullDefault() { assertEquals( "getOrDefault(present, null) should return the associated value", v0(), getMap().getOrDefault(k0(), null)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 4.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/PackageSanityTests.java
public PackageSanityTests() throws Exception { DummySubscriber dummySubscriber = new DummySubscriber(); setDefault(Subscriber.class, dummySubscriber.toSubscriber()); setDefault(Method.class, DummySubscriber.subscriberMethod()); setDefault(SubscriberExceptionContext.class, dummySubscriber.toContext()); setDefault(Dispatcher.class, Dispatcher.immediate()); } private static class DummySubscriber {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/NumberConversionUtilTest.java
*/ public void testFindFractionDelimeter3() throws Exception { final String delim = NumberConversionUtil.findDecimalSeparator(null); final char c = new DecimalFormatSymbols(LocaleUtil.getDefault()).getDecimalSeparator(); assertEquals(Character.toString(c), delim); } /** * @throws Exception */ public void testFindIntegerDelimeter() throws Exception {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/PackageSanityTests.java
*/ @NullUnmarked public class PackageSanityTests extends AbstractPackageSanityTests { public PackageSanityTests() { setDefault(LockFreeBitArray.class, new LockFreeBitArray(1)); setDefault(HashCode.class, HashCode.fromInt(1)); setDefault(String.class, "MD5"); setDefault(int.class, 32); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.2K bytes - Viewed (0) -
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);
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2K bytes - Viewed (0)