- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 86 for NPE (0.19 sec)
-
src/test/java/org/codelibs/fess/exception/JobProcessingExceptionTest.java
} public void test_getMessage_withComplexCause() { // Test getMessage behavior with complex cause structure final Exception innerCause = new NullPointerException("NPE occurred"); final Exception outerCause = new IllegalStateException("State error", innerCause); final JobProcessingException exception = new JobProcessingException(outerCause);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java
} public void test_stackTrace() { // Test that stack trace is properly preserved String message = "GSA error with stack trace"; Throwable cause = new NullPointerException("NPE occurred"); GsaConfigException exception = new GsaConfigException(message, cause); assertNotNull(exception.getStackTrace()); assertTrue(exception.getStackTrace().length > 0);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
* package-private, I feel OK with just not testing them for NPE. * * Note that testing casValue is particularly dangerous because it uses Unsafe under some * versions of Java, and apparently Unsafe can cause SIGSEGV instead of NPE—almost as if it's * not safe. */ concat( stream(AbstractFuture.class.getDeclaredMethods()),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java
// Test with different types of causes DataStoreException withIOException = new DataStoreException("IO Error", new java.io.IOException("File not found")); DataStoreException withNPE = new DataStoreException("NPE Error", new NullPointerException("Null value")); DataStoreException withCustom = new DataStoreException("Custom Error", new FessSystemException("System error"));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
class SmbComSeekResponseTest { @Mock private Configuration mockConfig; private SmbComSeekResponse response; @BeforeEach void setUp() { // Setup mock configuration to avoid NPE when(mockConfig.getPid()).thenReturn(12345); response = new SmbComSeekResponse(mockConfig); } /* ------------------------------------------------------------------ */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
verify(dest, times(1)).getAttributes(); verify(dest, never()).setPathInformation(anyInt(), anyLong(), anyLong(), anyLong()); } @Test @DisplayName("openCopyTargetFile throws NPE on null dest (invalid input)") void openCopyTargetFile_nullDest_throwsNPE() { // Arrange SmbFile dest = null; // Act + Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
assertEquals("", blob.toString(), "toString() should be empty for empty buffer"); } // Ensures set(null) resets the buffer to empty and does not NPE @Test @DisplayName("set(null) resets to empty") void set_null_resetsToEmpty() { // Arrange SecurityBlob blob = new SecurityBlob(new byte[] { 1, 2, 3 }); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ldap/LdapUserTest.java
testEnv.put("test.key", "test.value"); ldapUser = new LdapUser(testEnv, "testuser"); ComponentUtil.register(new SystemHelper(), "systemHelper"); // Register a mock LdapManager to avoid NPE ComponentUtil.register(new LdapManager() { // Override methods that are called in tests }, "ldapManager"); } @Override public void tearDown() throws Exception {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
assertEquals(16, hash1.length, "NT hash should be 16 bytes"); assertEquals(16, hash2.length, "NT hash should be 16 bytes"); } @Test @DisplayName("getNTHash: null password throws NPE with message") void testGetNTHash_null() { NullPointerException ex = assertThrows(NullPointerException.class, () -> NtlmUtil.getNTHash((String) null));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
assertEquals("Not supported", ex.getMessage()); } @Test @DisplayName("Null delegate causes NPE") void nullDelegate() { assertThrows(NullPointerException.class, () -> { new FileEntryAdapterIterator(parent, null, null) { @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0)