Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,214 for correct (0.03 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            assertTrue(bytesWritten > 0);
    
            // Verify data is written at correct offset
            assertEquals(3, dst[startOffset]);
    
            // Verify total parameter count at correct offset
            assertEquals(500, SMBUtil.readInt4(dst, startOffset + 3));
    
            // Verify total data count at correct offset
            assertEquals(1000, SMBUtil.readInt4(dst, startOffset + 7));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. 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() {
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

            int errorCode = 0x00000005; // DCERPC_FAULT_ACCESS_DENIED
            DcerpcException exception = new DcerpcException(errorCode);
            assertEquals(errorCode, exception.getErrorCode(), "getErrorCode() should return the correct error code.");
        }
    
        /**
         * Test getRootCause() method (deprecated).
         */
        @Test
        void testGetRootCause() {
            Throwable cause = new IllegalArgumentException("Invalid argument.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            request = new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, TEST_PREVIOUS_SESSION_ID, TEST_TOKEN);
        }
    
        @Test
        @DisplayName("Should create request with correct parameters")
        void testConstructorSetsCorrectParameters() throws Exception {
            // Given & When
            int securityMode = 0x03;
            int capabilities = 0x0F;
            long previousSessionId = 0xFEDCBA9876543210L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            assertEquals(0, share1.type, "Share 1 raw type should be 0.");
            assertEquals("Remark 1", share1.remark.trim(), "Share 1 remark should be correct.");
    
            SmbShareInfo share2 = (SmbShareInfo) response.results[1];
            assertEquals("IPC$", share2.getName().trim(), "Share 2 name should be correct.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                assertEquals(HEADER_SIZE + CHUNK_SIZE, bytesWritten);
    
                // Verify source key at correct position
                for (int i = 0; i < SOURCE_KEY_SIZE; i++) {
                    assertEquals(sourceKey[i], largeBuffer[position + i]);
                }
    
                // Verify chunk count at correct position
                assertEquals(1, SMBUtil.readInt4(largeBuffer, position + SOURCE_KEY_SIZE));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbFileHandleTest.java

        }
    
        /**
         * Test getInitialSize() returns the correct size.
         */
        @Test
        void testGetInitialSize() {
            long expectedSize = 1024L;
            when(smbFileHandle.getInitialSize()).thenReturn(expectedSize);
            long actualSize = smbFileHandle.getInitialSize();
            assertEquals(expectedSize, actualSize, "getInitialSize should return the correct initial file size.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/UUIDTest.java

                assertEquals(CLOCK_SEQ_HI_AND_RESERVED, uuid.clock_seq_hi_and_reserved, "clock_seq_hi_and_reserved should be parsed correctly");
                assertEquals(CLOCK_SEQ_LOW, uuid.clock_seq_low, "clock_seq_low should be parsed correctly");
                assertArrayEquals(NODE, uuid.node, "node array should be parsed correctly");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            // Verify the exception message
            assertEquals("Non-empty string", exception.getMessage(), "The exception message is not correct.");
        }
    
        /**
         * Tests the {@link PacUnicodeString#check(String)} method with a string of incorrect length.
         */
        @Test
        void testCheck_withInvalidLength_throwsException() {
            // Length is 10 bytes, so expected string length is 5 characters
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java

            String result = purgeDocJob.execute();
    
            // Assert deleteByQuery was called
            assertTrue(deleteByQueryCalled);
    
            // Assert correct index was used
            assertEquals("fess.update", deleteIndex);
    
            // Assert query builder is correct
            assertNotNull(deleteQuery);
            assertTrue(deleteQuery instanceof RangeQueryBuilder);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.1K bytes
    - Viewed (0)
Back to top