Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 2,907 for Shouldn (0.04 sec)

  1. src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java

                int modifiers = field.getModifiers();
                assertTrue(Modifier.isPublic(modifiers), "Field " + field.getName() + " should be public");
                assertTrue(Modifier.isStatic(modifiers), "Field " + field.getName() + " should be static");
                assertTrue(Modifier.isFinal(modifiers), "Field " + field.getName() + " should be final");
            }
        }
    
        @Test
        @DisplayName("Test constant values are unique")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            // NameOffset field (2 bytes) - should be 16 (after header)
            assertEquals(16, SMBUtil.readInt2(buffer, 4));
    
            // NameLength field (2 bytes) - should be 4 for "RqLs"
            assertEquals(4, SMBUtil.readInt2(buffer, 6));
    
            // Reserved field (2 bytes) - should be 0
            assertEquals(0, SMBUtil.readInt2(buffer, 8));
    
            // DataOffset field (2 bytes) - should be 24 (16 header + 4 name + 4 padding)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            } else {
                fail("Inconsistent behavior: first=" + first + ", second=" + second);
            }
    
            // Third call should return the same cached Subject instance
            Subject third = auth.getSubject();
            assertEquals(second, third, "Subsequent calls should return same cached result");
    
            // Refresh should clear the cache
            auth.refresh();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                assertNotNull(bindWithParams, "Constructor should create instance");
                assertEquals(0, bindWithParams.getOpnum(), "Opnum should be 0");
                assertEquals(11, bindWithParams.getPtype(), "Ptype should be 11 for bind message");
                assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, bindWithParams.getFlags(),
                        "Flags should be set for first and last fragment");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/config/MultiChannelConfigurationTest.java

            assertTrue(config.isUseMultiChannel(), "Multi-channel should be enabled by default");
            assertEquals(4, config.getMaxChannels(), "Default max channels should be 4");
            assertEquals(1, config.getChannelBindingPolicy(), "Default binding policy should be preferred");
            assertEquals("adaptive", config.getLoadBalancingStrategy(), "Default strategy should be adaptive");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/spnego/NegTokenInitTest.java

            assertArrayEquals(mechs, parsed.getMechanisms(), "Mechanism OIDs should round-trip");
            assertEquals(flags, parsed.getContextFlags(), "Flags should round-trip");
            assertArrayEquals(mechToken, parsed.getMechanismToken(), "Mechanism token should round-trip");
            assertArrayEquals(mic, parsed.getMechanismListMIC(), "MIC should round-trip");
    
            assertTrue(parsed.getContextFlag(NegTokenInit.DELEGATION));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // The offset should point to the location after the fixed structure (relative to header start)
            int expectedOffset = Smb2Constants.SMB2_HEADER_LENGTH + 24;
            while ((expectedOffset % 8) != 0) {
                expectedOffset++; // Account for pad8
            }
            assertEquals(expectedOffset, securityBufferOffset);
        }
    
        @Test
        @DisplayName("Should handle large token correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/NtlmFlagsTest.java

        }
    
        @Test
        void testNtlmNegotiateOem() {
            assertEquals(0x00000002, NtlmFlags.NTLMSSP_NEGOTIATE_OEM, "NTLMSSP_NEGOTIATE_OEM should be 0x00000002");
        }
    
        @Test
        void testNtlmRequestTarget() {
            assertEquals(0x00000004, NtlmFlags.NTLMSSP_REQUEST_TARGET, "NTLMSSP_REQUEST_TARGET should be 0x00000004");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

        class ConstructorTests {
    
            @Test
            @DisplayName("Should throw DcerpcException for invalid URL format")
            void testConstructor_InvalidUrl() {
                String invalidUrl = "invalid:server";
                assertThrows(DcerpcException.class, () -> new DcerpcPipeHandle(invalidUrl, mockContext, false),
                        "Should throw DcerpcException for invalid protocol");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

        }
    
        @Test
        @DisplayName("Should create correct response")
        void testCreateResponse() {
            // When
            Smb2ChangeNotifyResponse response = request.createResponse(mockContext, request);
    
            // Then
            assertNotNull(response);
            assertTrue(response instanceof Smb2ChangeNotifyResponse);
        }
    
        @Test
        @DisplayName("Should calculate correct size")
        void testSize() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top