- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for NPE (0.01 sec)
-
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
public void oneArg(String s) { // Fail: missing NPE for s } } public void testFailOneArgDoesntThrowNpe() { shouldFail(new FailOneArgDoesntThrowNpe()); } private static class FailOneArgThrowsWrongType extends PassObject { @Override public void oneArg(String s) { doThrow(s); // Fail: throwing non-NPE exception for null s } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
TestCredentials creds = new TestCredentials("DOM", false, false, new Subject(), false); // Act & Assert NullPointerException npe = assertThrows(NullPointerException.class, () -> creds.unwrap(null)); assertEquals("type", npe.getMessage()); } @Test @DisplayName("clone returns a distinct copy with same properties") void clone_returns_copy() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
assertTrue(ex.getMessage().contains("Failed to calculate MIC")); } @Test @DisplayName("calculateMIC with null data throws NPE") void calculateMIC_nullData() { assertThrows(NullPointerException.class, () -> ctx.calculateMIC(null)); } @Test @DisplayName("verifyMIC delegates to GSS and succeeds")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
} @Test @DisplayName("Test write operations") void testWriteOperations() { byte[] dst = new byte[1024]; // Initialize transaction buffer to avoid NPE transaction.setBuffer(new byte[SmbComTransaction.TRANSACTION_BUF_SIZE]); // Test parameter words wire format int paramWords = transaction.writeParameterWordsWireFormat(dst, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
assertFalse(handle.isSMB2()); } @Test @DisplayName("Null treeConnection throws NPE") void constructorNullTreeConnection() { // Null treeConnection throws NPE when acquire() is called assertThrows(NullPointerException.class, () -> new SmbTreeHandleImpl(resourceLoc, null)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
class CtorValidation { @Test @DisplayName("null handle throws NPE") void nullHandle() { assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(null, tree)); } @Test @DisplayName("null tree throws NPE") void nullTree() { assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(handle, null));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
} } assertThrows(ClassCastException.class, () -> { OtherPipeHandle result = target.unwrap(OtherPipeHandle.class); }); // Null input: document current behavior (NPE from isAssignableFrom) assertThrows(NullPointerException.class, () -> target.unwrap(null)); } @Test @DisplayName("getPipe, getPipeType, getUncPath delegate to underlying pipe")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
// https://android-review.googlesource.com/#/c/271775/ try { this.socket = rawSocket.asBufferedSocket() } catch (npe: NullPointerException) { if (npe.message == NPE_THROW_WITH_NULL) { throw IOException(npe) } } } /** * Does all the work to build an HTTPS connection over a proxy tunnel. The catch here is that a
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
// This method directly calls a superclass method (readResourceRecordWireFormat). // We need to setup fields to avoid NPE when parsing // Set recordName for parsing Field recordNameField = NameServicePacket.class.getDeclaredField("recordName"); recordNameField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0)