- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 137 for setDefault (0.05 seconds)
-
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)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
private val factory = TestValueFactory() .apply { dns = fakeDns } @BeforeEach fun setup() { Authenticator.setDefault(recordingAuthenticator) } @AfterEach fun tearDown() { Authenticator.setDefault(null) factory.close() } @Test fun testBasicAuth() { fakeDns["server"] = listOf(InetAddress.getLocalHost())Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.7K bytes - Click Count (0) -
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 {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 9.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
TimeZone original = TimeZone.getDefault(); try { TimeZone.setDefault(TimeZone.getTimeZone("UTC")); ServerMessageBlock.writeUTime(unixTime * 1000L, buffer, 0); long readTime = ServerMessageBlock.readUTime(buffer, 0); assertEquals(unixTime * 1000L, readTime); } finally { TimeZone.setDefault(original); } } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
scripts/deploy_docs_status.py
preview_link=f"{deploy_url}/{use_path}", ) if lang != "en": link.en_link = f"https://fastapi.tiangolo.com/{en_path}" lang_links.setdefault(lang, []).append(link) links: list[LinkData] = [] en_links = lang_links.get("en", []) en_links.sort(key=lambda x: x.preview_link) links.extend(en_links) langs = list(lang_links.keys())Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 30 05:56:53 GMT 2025 - 4.4K bytes - Click Count (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 {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Fri Jun 20 13:40:57 GMT 2025 - 9.5K bytes - Click Count (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java
} @Test void testLocaleIndependent() { Locale orig = Locale.getDefault(); Locale[] locales = {Locale.ENGLISH, new Locale("tr"), Locale.getDefault()}; try { for (Locale locale : locales) { Locale.setDefault(locale); checkVersionsEqual("1-abcdefghijklmnopqrstuvwxyz", "1-ABCDEFGHIJKLMNOPQRSTUVWXYZ"); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 17.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
} @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNullPointers() { NullPointerTester tester = new NullPointerTester(); tester.setDefault(BigInteger.class, ONE); tester.setDefault(int.class, 1); tester.setDefault(long.class, 1L); tester.testAllPublicStaticMethods(BigIntegerMath.class); } @GwtIncompatible // String.format @FormatMethod
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:51:56 GMT 2026 - 27.1K bytes - Click Count (0) -
src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java
/** * @author higa */ public class TimestampConversionUtilTest { @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 {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 11.4K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java
class FileSizeFormatTest { static Locale original; @BeforeAll static void beforeAll() { original = Locale.getDefault(); Locale.setDefault(Locale.US); } @AfterAll static void afterAll() { Locale.setDefault(original); } @Test void testNegativeSize() { FileSizeFormat format = new FileSizeFormat();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 14.9K bytes - Click Count (0)