Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testConstructorWithNullConfig (0.99 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

                assertTrue(response.getDfsResponse() instanceof DfsReferralResponseBuffer);
            }
    
            @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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

        }
    
        /**
         * Test constructor with null configuration
         */
        @Test
        @DisplayName("Test constructor throws NullPointerException with null configuration")
        public void testConstructorWithNullConfig() {
            // When & Then - should throw NullPointerException since ServerMessageBlock calls config.getPid()
            NullPointerException exception = assertThrows(NullPointerException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            assertTrue(lockResponse instanceof jcifs.internal.smb2.ServerMessageBlock2Response);
        }
    
        @Test
        @DisplayName("Constructor should handle null configuration")
        void testConstructorWithNullConfig() {
            // Given & When
            Smb2LockResponse lockResponse = new Smb2LockResponse(null);
    
            // Then
            assertNotNull(lockResponse);
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                configField.setAccessible(true);
                assertEquals(mockConfig, configField.get(request));
            }
    
            @Test
            @DisplayName("Should handle null configuration")
            void testConstructorWithNullConfig() {
                assertDoesNotThrow(() -> {
                    Smb2EchoRequest request = new Smb2EchoRequest(null);
                    assertNotNull(request);
                });
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

        }
    
        /**
         * Test with null configuration
         */
        @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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top