Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for NullPointerException (0.3 sec)

  1. src/test/java/org/codelibs/fess/suggest/index/writer/SuggestWriterResultTest.java

            result.addFailure(new RuntimeException("RuntimeException"));
            result.addFailure(new IllegalStateException("IllegalStateException"));
            result.addFailure(new NullPointerException("NullPointerException"));
    
            assertEquals(4, result.getFailures().size());
            assertTrue(result.getFailures().get(0) instanceof Exception);
            assertTrue(result.getFailures().get(1) instanceof RuntimeException);
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Thu Nov 13 00:40:54 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

        }
    
        @Test
        void testConstructorWithNullSIDArray() {
            jcifs.SID[] sids = null;
            // Expect NullPointerException when passing a null array to the constructor
            assertThrows(NullPointerException.class, () -> new LsarSidArrayX(sids),
                    "Should throw NullPointerException when sids array is null");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/config/PropertyConfigurationTest.java

        @DisplayName("Should handle null properties gracefully")
        void testNullProperties() throws CIFSException {
            // PropertyConfiguration doesn't handle null properties
            // It should throw NullPointerException
            assertThrows(NullPointerException.class, () -> {
                new PropertyConfiguration(null);
            });
        }
    
        @Test
        @DisplayName("Should handle empty properties")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

         */
        @Test
        @DisplayName("Test constructor with null configuration throws NullPointerException")
        public void testConstructorWithNullConfig() {
            // Given
            String oldFileName = "old.txt";
            String newFileName = "new.txt";
    
            // When & Then - should throw NullPointerException
            assertThrows(NullPointerException.class, () -> {
                new SmbComRename(null, oldFileName, newFileName);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            }
    
            @Test
            @DisplayName("Should throw NullPointerException with null configuration")
            void testConstructorWithNullConfig() {
                // The parent class requires a non-null configuration for getPid()
                assertThrows(NullPointerException.class, () -> {
                    new Trans2GetDfsReferralResponse(null);
                });
            }
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

            }
    
            @Test
            @DisplayName("Null buffer leads to NullPointerException from readInt2")
            void nullBuffer_throwsNPE() {
                // Arrange
                Smb2LogoffResponse resp = newResponse();
    
                // Act & Assert
                assertThrows(NullPointerException.class, () -> resp.readBytesWireFormat(null, 0));
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbTreeTest.java

         */
        @Test
        void testUnwrap_withNullParameter() {
            when(smbTree.unwrap(null)).thenThrow(new NullPointerException("Type cannot be null"));
    
            assertThrows(NullPointerException.class, () -> smbTree.unwrap(null), "Should throw NullPointerException when type is null");
        }
    
        /**
         * Test for method interaction.
         * Verifies that unwrap and close can be used in sequence.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

            }
    
            @Test
            @DisplayName("createResponse throws NullPointerException when CIFSContext is null")
            void createResponse_nullContext_throws() {
                // Arrange
                Smb2LogoffRequest req = newRequest();
    
                // Act/Assert
                assertThrows(NullPointerException.class, () -> req.createResponse(null, req));
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                // Test with concrete implementation - behavior depends on implementation
                // May throw NullPointerException
                try {
                    concreteImplementation.append(null);
                } catch (NullPointerException e) {
                    // Expected for some implementations
                }
            }
        }
    
        @Nested
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("renameTo should throw NullPointerException for null destination")
            void testRenameTo_NullDestination() throws CIFSException {
                // Given
                doThrow(new NullPointerException("dest argument is null")).when(mockResource).renameTo(null);
    
                // When/Then
                assertThrows(NullPointerException.class, () -> mockResource.renameTo(null),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
Back to top