Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 491 for assertNull (0.09 seconds)

  1. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            // Arrange & Act
            SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException();
    
            // Assert - message and cause are null
            assertNull(ex.getMessage(), "Default constructor should have null message");
            assertNull(ex.getCause(), "Default constructor should have null cause");
    
            // Assert - toString shows class name when message is null
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                assertNull(context.getHashAlgos());
                assertNull(context.getSalt());
            }
    
            @Test
            @DisplayName("Should handle null hash algorithms")
            void testNullHashAlgorithms() {
                context = new PreauthIntegrityNegotiateContext(mockConfig, null, new byte[16]);
    
                assertNull(context.getHashAlgos());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/spnego/NegTokenTargTest.java

            assertEquals(NegTokenTarg.ACCEPT_INCOMPLETE, parsed.getResult(), "result should be present");
            assertNull(parsed.getMechanism(), "mechanism should be null when omitted");
            assertNull(parsed.getMechanismToken(), "mechanism token should be null when omitted");
            assertNull(parsed.getMechanismListMIC(), "MIC should be null when omitted");
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/DfsTest.java

            assertNull(testDfs.getTrustedDomains(auth));
        }
    
        @Test
        void testGetTrustedDomains_Success() throws IOException, SmbAuthException {
            // This test is complex due to static method dependencies and reflection access
            // For now, we'll test the disabled path which is safer
            testDfs.setDisabled(true);
            assertNull(testDfs.getTrustedDomains(auth));
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.java

    import static org.junit.jupiter.api.Assertions.assertNull;
    
    import org.junit.jupiter.api.Test;
    
    class ConnectionTimeoutExceptionTest {
    
        @Test
        void testNoArgsConstructor() {
            // Test the no-argument constructor
            ConnectionTimeoutException exception = new ConnectionTimeoutException();
            assertNull(exception.getMessage(), "Message should be null for no-arg constructor");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            assertEquals(0L, concreteResponse.getMid());
            assertEquals(0, concreteResponse.getCommand());
            assertNull(concreteResponse.getDigest());
            assertNull(concreteResponse.getException());
            assertNull(concreteResponse.getExpiration());
            assertFalse(concreteResponse.isError());
            assertFalse(concreteResponse.isReceived());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTestType.java

            artifact = getArtifact(project, "maven-test-test", "scope-provided");
            assertNull(artifact, "Check no provided dependencies are transitive");
            artifact = getArtifact(project, "maven-test-test", "scope-test");
            assertNull(artifact, "Check no test dependencies are transitive");
    
            artifact = getArtifact(project, "maven-test-test", "scope-compile");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertNull(auth1.getPassword());
    
            // Test with null char[] password
            NtlmPasswordAuthenticator auth2 = new NtlmPasswordAuthenticator("testuser", (char[]) null);
            assertNull(auth2.getPassword());
    
            // Test secure wipe on null password
            auth1.secureWipePassword(); // Should not throw exception
            assertNull(auth1.getPassword());
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java

    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import org.junit.jupiter.api.Test;
    
    class RequestTimeoutExceptionTest {
    
        @Test
        void testNoArgsConstructor() {
            // Test the constructor with no arguments
            RequestTimeoutException exception = new RequestTimeoutException();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/dfs/ReferralTest.java

            assertEquals(specialName, referral.getSpecialName());
            assertArrayEquals(expandedNames, referral.getExpandedNames());
            assertNull(referral.getRpath());
            assertNull(referral.getAltPath());
            assertNull(referral.getNode());
        }
    
        @Test
        public void testVersion3WithZeroOffsets() {
            // Prepare test data with zero offsets
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 22K bytes
    - Click Count (0)
Back to Top