Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 709 for correcta (0.06 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

            assertEquals(positiveValue, ndrLongPositive.value, "Constructor should correctly initialize with a positive value.");
    
            // Test case 2: Negative value
            int negativeValue = -54321;
            NdrLong ndrLongNegative = new NdrLong(negativeValue);
            assertEquals(negativeValue, ndrLongNegative.value, "Constructor should correctly initialize with a negative value.");
    
            // Test case 3: Zero value
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

        class FlagConstantsTests {
    
            @Test
            @DisplayName("Should have correct shared lock flag value")
            void testSharedLockFlag() {
                assertEquals(0x1, Smb2Lock.SMB2_LOCKFLAG_SHARED_LOCK);
            }
    
            @Test
            @DisplayName("Should have correct exclusive lock flag value")
            void testExclusiveLockFlag() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java

        }
    
        @Test
        void testEncode() throws NdrException {
            // Create an NdrSmall object with a specific value
            NdrSmall ndrSmall = new NdrSmall(100);
    
            // Call the encode method
            ndrSmall.encode(mockNdrBuffer);
    
            // Verify that enc_ndr_small was called with the correct value
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

        class ConstantsTests {
    
            @Test
            @DisplayName("Should have correct SMB2_READFLAG_READ_UNBUFFERED value")
            void testReadUnbufferedFlag() {
                assertEquals((byte) 0x1, Smb2ReadRequest.SMB2_READFLAG_READ_UNBUFFERED);
            }
    
            @Test
            @DisplayName("Should have correct SMB2_CHANNEL_NONE value")
            void testChannelNone() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            int timeout3 = delegatingConfig.getResponseTimeout();
    
            // Then
            assertEquals(30000, timeout1, "First call should return correct value");
            assertEquals(30000, timeout2, "Second call should return correct value");
            assertEquals(30000, timeout3, "Third call should return correct value");
            verify(mockDelegate, times(3)).getResponseTimeout();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // Then
            assertEquals(0, request.getCapabilities() & Smb2Constants.SMB2_GLOBAL_CAP_ENCRYPTION);
        }
    
        @Test
        @DisplayName("Should generate correct dialect list")
        void testDialectGeneration() {
            // Given
            when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB210);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  7. 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)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

        }
    
        @Test
        @DisplayName("Should create request with correct command type and path")
        void testConstructorSetsCorrectCommandAndPath() throws Exception {
            // Given & When
            String path = "\\\\testserver\\testshare";
            Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, path);
    
            // Then - verify command is set correctly using reflection
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

            assertEquals(0x00, trans.maxSetupCount);
            assertEquals(2, trans.setupCount);
            assertEquals("\\PIPE\\", trans.name);
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat writes correct data")
        void testWriteSetupWireFormat() {
            // Arrange
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH);
            byte[] dst = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        }
    
        @Test
        @DisplayName("readInt2 should correctly read 16-bit integer")
        void testReadInt2() {
            byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56 };
            int result = SessionServicePacket.readInt2(src, 0);
    
            assertEquals(0x1234, result);
        }
    
        @Test
        @DisplayName("readInt2 with offset should read from correct position")
        void testReadInt2WithOffset() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top