- Sort Score
- Result 10 results
- Languages All
Results 861 - 870 of 2,976 for throw (0.02 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java
public void testRemoveIf_unsupportedEmptyCollection() { try { assertFalse( "removeIf(Predicate) should return false or throw UnsupportedOperationException", collection.removeIf( x -> { throw new AssertionError("predicate should never be called"); })); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 20:34:52 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
pkcs8Base64Text.decodeBase64() ?: throw IllegalArgumentException("failed to decode private key") // The private key doesn't tell us its type but it's okay because the certificate knows! val keyType = when (certificate.publicKey) { is ECPublicKey -> "EC" is RSAPublicKey -> "RSA" else -> throw IllegalArgumentException("unexpected key type: ${certificate.publicKey}")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 21.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
@Test void testFailureWithNoAlternativeChannels() throws Exception { failedChannel.addPendingOperation(mockOperation); when(mockLoadBalancer.selectChannel(mockOperation)).thenThrow(new ChannelLoadBalancer.NoAvailableChannelException("No channels")); IOException error = new IOException("Connection failed"); // Should not throw exception even if no alternative channels
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/DiscreteDomain.java
* * <p>The default implementation throws {@code NoSuchElementException}. * * @return the minimum value of type {@code C}; never null * @throws NoSuchElementException if the type has no (practical) minimum value; for example, * {@link java.math.BigInteger} */ @CanIgnoreReturnValue public C minValue() { throw new NoSuchElementException(); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 10.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
void testSetResponseNull() { testRequest.setResponse(null); assertNull(testRequest.getResponse()); } @Test @DisplayName("setResponse should throw exception for incompatible response") void testSetResponseIncompatible() { CommonServerMessageBlockResponse incompatibleResponse = mock(CommonServerMessageBlockResponse.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
keyManager.storeSessionKey("session", testKey, "AES"); keyManager.close(); keyManager.close(); // Should not throw assertEquals(0, keyManager.getKeyCount(), "Should have no keys after close"); } @Test public void testAutoCloseable() throws Exception { try (SecureKeyManager manager = new SecureKeyManager()) { manager.storeSessionKey("auto-session", testKey, "AES");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java
} public void test_hook_withNullAssistantDirector() { // When & Then - Should not throw exception try { curtainBeforeHook.hook(null); } catch (Exception e) { fail("Should not throw exception with null AssistantDirector"); } } public void test_multipleHookCalls_maintainsSameTimeZone() { // Given
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmContext.java
} isEstablished = true; state++; break; } catch (final Exception e) { throw new SmbException(e.getMessage(), e); } default: throw new SmbException("Invalid state"); } return token; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/smb/DfsImpl.java
return null; } while (dr != start); throw e; } } catch (final IOException ioe) { if (tf.getConfig().isDfsStrictView() && ioe instanceof SmbAuthException) { throw (SmbAuthException) ioe; } } return null; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 29.7K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt
val request = Request .Builder() .url("https://publicobject.com/robots.txt") .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") for (certificate in response.handshake!!.peerCertificates) { println(CertificatePinner.pin(certificate)) } } } } fun main() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.4K bytes - Viewed (0)