Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_invalid (0.57 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            assertArrayEquals(token, response.getServerData().encryptionKey);
            assertEquals("", response.getServerData().oemDomainName);
        }
    
        @Test
        public void testIsValid() {
            SmbNegotiationRequest request = mock(SmbNegotiationRequest.class);
            when(request.isSigningEnforced()).thenReturn(true);
            response.getServerData().signaturesEnabled = true;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            when(otherContext.getConfig()).thenReturn(otherConfig);
            assertFalse(response.canReuse(otherContext, false));
        }
    
        @Test
        @DisplayName("Should validate response correctly")
        void testIsValid() throws Exception {
            // Setup valid response
            setResponseAsReceived(response);
            setPrivateField(response, "dialectRevision", 0x0311);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top