- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,654 for Try (0.02 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
public void testContainsKey() { Map<K, V> map; K unmappedKey; try { map = makePopulatedMap(); unmappedKey = getKeyNotInPopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertFalse(map.containsKey(unmappedKey)); try { assertFalse(map.containsKey(new IncompatibleKeyType())); } catch (ClassCastException tolerated) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
try { circuitBreaker.executeWithCircuitBreaker(() -> { throw new RuntimeException("Test failure"); }); } catch (CIFSException e) { // Expected } } assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN"); // Try to execute - should be blocked with CIFSException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
try (SmbSessionImpl session = getSession()) { if (session == null) { return; } try (SmbTransportImpl transport = session.getTransport()) { synchronized (transport) { final SmbTreeImpl t = getTreeInternal(); if (t != null) { try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
tempFile = File.createTempFile("test", ".tmp", Curl.tmpDir); // Write test content to file try (FileOutputStream fos = new FileOutputStream(tempFile)) { fos.write(testContent.getBytes("UTF-8")); } ContentCache cache = new ContentCache(tempFile); try (InputStream stream = cache.getInputStream()) { assertNotNull(stream); byte[] buffer = new byte[1024];
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/config/PropertyConfiguration.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13.3K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
assertContentsInOrder(list, "a", "b", "c"); try { assertContentsInOrder(list, "a", "b"); throw new Error(); } catch (AssertionFailedError expected) { } try { assertContentsInOrder(list, "a", "b", "c", "d"); throw new Error(); } catch (AssertionFailedError expected) { } try { assertContentsInOrder(list, "a", "c", "b");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 4.9K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/HelpersTest.java
assertContentsInOrder(list, "a", "b", "c"); try { assertContentsInOrder(list, "a", "b"); throw new Error(); } catch (AssertionFailedError expected) { } try { assertContentsInOrder(list, "a", "b", "c", "d"); throw new Error(); } catch (AssertionFailedError expected) { } try { assertContentsInOrder(list, "a", "c", "b");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
try { handshake(); } catch (final IOException ex) {} return connection.getDate(); } @Override public long getLastModified() { try { handshake(); } catch (final IOException ex) {} return connection.getLastModified(); } @Override public String getHeaderField(final String header) { try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java
} @Override public String readLine() throws IOException { try { return prompter.prompt(null); } catch (org.apache.maven.api.services.PrompterException e) { throw new IOException("Unable to prompt", e); } } @Override public String readPassword() throws IOException { try { return prompter.promptForPassword(null);
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Apr 03 13:48:41 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
try { ThreadDumpUtil.printThreadDump(); } catch (Exception e) { fail("printThreadDump() should not throw exceptions: " + e.getMessage()); } } public void test_printThreadDumpAsWarn() { // This test verifies that printThreadDumpAsWarn() method exists and can be called without exceptions try {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 15.5K bytes - Viewed (0)