Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 817 for Given (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

        private static final short SMB2_TREE_DISCONNECT = 0x0004;
    
        @Test
        @DisplayName("Should create request with correct command type")
        void testConstructorSetsCorrectCommand() throws Exception {
            // Given
            Configuration mockConfig = mock(Configuration.class);
    
            // When
            Smb2TreeDisconnectRequest req = new Smb2TreeDisconnectRequest(mockConfig);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

        /**
         * Test writeParameterWordsWireFormat returns 0
         */
        @Test
        @DisplayName("Test writeParameterWordsWireFormat always returns 0")
        public void testWriteParameterWordsWireFormat() {
            // Given
            smbComTreeDisconnect = new SmbComTreeDisconnect(config);
            byte[] dst = new byte[100];
            int dstIndex = 0;
    
            // When
    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/CommonServerMessageBlockTest.java

        void testReset() {
            // Given
            doNothing().when(messageBlock).reset();
    
            // When
            messageBlock.reset();
    
            // Then
            verify(messageBlock).reset();
        }
    
        @Test
        @DisplayName("Test multiple operations in sequence")
        void testMultipleOperationsInSequence() {
            // Given
            long mid = 123L;
            int command = 0x73;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            response = new Smb2TreeDisconnectResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Should create response with configuration")
        void testConstructorWithConfiguration() {
            // Given & When
            Smb2TreeDisconnectResponse resp = new Smb2TreeDisconnectResponse(mockConfig);
    
            // Then
            assertNotNull(resp);
            assertTrue(resp instanceof ServerMessageBlock2Response);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

        }
    
        @Test
        @DisplayName("Should create request with correct parameters")
        void testConstructorSetsCorrectParameters() throws Exception {
            // Given & When
            int securityMode = 0x03;
            int capabilities = 0x0F;
            long previousSessionId = 0xFEDCBA9876543210L;
            byte[] token = { 0x0A, 0x0B, 0x0C };
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

            response = new Smb2FlushResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Constructor should initialize with Configuration")
        void testConstructor() {
            // Given & When
            Smb2FlushResponse flushResponse = new Smb2FlushResponse(mockConfig);
    
            // Then
            assertNotNull(flushResponse);
            // Cannot test getConfig() as it's protected
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/AllocInfoTest.java

                TestAllocInfo allocInfo = new TestAllocInfo(Long.MIN_VALUE, Long.MIN_VALUE);
    
                // When & Then
                assertEquals(Long.MIN_VALUE, allocInfo.getCapacity());
                assertEquals(Long.MIN_VALUE, allocInfo.getFree());
            }
    
            @Test
            @DisplayName("Should calculate used space correctly")
            void shouldCalculateUsedSpaceCorrectly() {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

     */
    class Trans2FindNext2Test {
    
        /**
         * Verifies constructor initializes protocol fields and limits correctly.
         */
        @Test
        void testConstructorInitializesFields() {
            // Given
            int sid = 0x2222;
            int resumeKey = 0x12345678;
            String filename = "dir\\pattern*";
    
            // When
            Trans2FindNext2 next = new Trans2FindNext2(sid, resumeKey, filename);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SmbResourceTest.java

            }
    
            @Test
            @DisplayName("SmbResource should have all required methods")
            void testRequiredMethods() throws NoSuchMethodException {
                // Given
                Class<SmbResource> clazz = SmbResource.class;
    
                // When/Then - Verify essential methods exist
                assertNotNull(clazz.getMethod("getLocator"), "Should have getLocator method");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                assertEquals(mockPolicyHandle, message.handle);
            }
    
            @Test
            @DisplayName("Should encode input parameters correctly")
            void testEncodeIn() throws NdrException {
                // Given: Close handle message
                samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle);
    
                // When: Encoding input
                message.encode_in(mockNdrBuffer);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
Back to top