- Sort Score
- Result 10 results
- Languages All
Results 371 - 380 of 1,808 for try (0.04 sec)
-
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
/** * Test that MockWebServer blocks for a call to enqueue() if a request is made before a mock * response is ready. */ @Test fun dispatchBlocksWaitingForEnqueue() { Thread { try { Thread.sleep(1000) } catch (ignored: InterruptedException) { } server.enqueue( MockResponse .Builder() .body("enqueued in the background")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
} } long startTime = System.nanoTime(); boolean semaphoreAcquired = backpressureEnabled && requestSemaphore != null; try { activeRequests.incrementAndGet(); State currentState = state.get(); // Check if we should attempt reset if (currentState == State.OPEN && shouldAttemptReset()) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/OutputStreamUtil.java
* @see FileOutputStream#FileOutputStream(File) */ public static FileOutputStream create(final File file) { assertArgumentNotNull("file", file); try { return new FileOutputStream(file); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * Flushes the {@link OutputStream}. *Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 1.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
public void test_execute_web() throws Exception { final CrawlerWebServer server = new CrawlerWebServer(7070); server.start(); final String url = "http://localhost:7070/"; try { final int maxCount = 50; final int numOfThread = 10; final File file = File.createTempFile("crawler-", ""); file.delete(); file.mkdirs();Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 19.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
/** * Remove a channel * * @param channel channel to remove */ public void removeChannel(ChannelInfo channel) { channels.remove(channel.getChannelId()); try { if (channel.getTransport() != null) { channel.getTransport().close(); } } catch (Exception e) { log.debug("Error disconnecting removed channel", e);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
NtlmPasswordAuthenticator endAuth = new NtlmPasswordAuthenticator("domain", "user", new String(diffAtEnd)); try { // Measure timing for differences at different positions long timeStart = measureEqualsTime(baseAuth, startAuth, TIMING_ITERATIONS);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java
} else { // Windows extention = ".bat"; content = "ping localhost -n " + sleep + "\r\ncopy %1 %2"; } File file; try { file = File.createTempFile("script", extention); file.deleteOnExit(); FileUtil.writeBytes(file.getAbsolutePath(), content.getBytes()); return file;Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
this.openFlags = openFlags; this.sharing = sharing; this.access = access | SmbConstants.FILE_WRITE_DATA; try (SmbTreeHandleImpl th = file.ensureTreeConnected()) { this.smb2 = th.isSMB2(); try (SmbFileHandleImpl fh = ensureOpen()) { if (append) { this.fp = fh.getInitialSize(); } init(th);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
val result = mutableListOf<String>() for (path in fileSystem.list(testCaseDirectory)) { val story00 = path / "story_00.json" if (!fileSystem.exists(story00)) continue try { readStory(story00) result.add(path.name) } catch (ignored: IOException) { // Skip this path. } } return result.toTypedArray<String>() } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java
assertNull("get(null) should return null", get(null)); } @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES) public void testGet_nullNotContainedAndUnsupported() { try { assertNull("get(null) should return null or throw", get(null)); } catch (NullPointerException tolerated) { } } @MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0)