Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1771 - 1780 of 4,151 for text (0.02 sec)

  1. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

    import org.junit.jupiter.api.AfterEach;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.MockedStatic;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.pac.PACDecodingException;
    
    /**
     * Test class for {@link KerberosRelevantAuthData}.
     */
    @ExtendWith(MockitoExtension.class)
    class KerberosRelevantAuthDataTest {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

        }
    
        @Test
        @DisplayName("Test default constructor creates empty SecurityDescriptor")
        void testDefaultConstructor() {
            SecurityDescriptor sd = new SecurityDescriptor();
            assertEquals(0, sd.getType());
            assertNull(sd.getAces());
            assertNull(sd.getOwnerUserSid());
            assertNull(sd.getOwnerGroupSid());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/NtlmHttpFilterTest.java

        }
    
        @Test
        void testDestroy() {
            // Test that destroy method executes without errors
            assertDoesNotThrow(() -> filter.destroy());
        }
    
        @Test
        void testDoFilter_noAuthorizationHeader_shouldChallengeClient() throws Exception {
            // Initialize filter first
            initializeFilter();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/BufferCacheTest.java

    import java.util.ArrayList;
    import java.util.List;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Comprehensive test suite for BufferCache interface.
     * Tests the contract and behavior of BufferCache implementations.
     */
    @DisplayName("BufferCache Interface Tests")
    class BufferCacheTest extends BaseTest {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. api/maven-api-core/src/test/java/org/apache/maven/api/services/RequestImplementationTest.java

        }
    
        @Test
        void testRequestTraceIntegration() {
            Session session = mock(Session.class);
            RequestTrace trace = new RequestTrace("test-context", null, "test-data");
    
            ArtifactInstallerRequest request =
                    ArtifactInstallerRequest.builder().session(session).trace(trace).build();
    
            assertEquals(trace, request.getTrace());
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            }
        }
    
        @Test
        void testReadDataWireFormatWithEmptyData() throws SMBProtocolDecodingException {
            byte[] buffer = new byte[100];
            int result = response.readDataWireFormat(buffer, 0, 0);
            assertEquals(0, result);
        }
    
        @Test
        void testReadDataWireFormatAtBufferBoundary() throws SMBProtocolDecodingException {
            // Test with data exactly matching output buffer size
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

            // This is a weak check, but better than nothing.
            // A more robust test would require a real SMB1SigningDigest.
            assertTrue(writtenTime != 0 || lastWriteTime == 0);
        }
    
        /**
         * Test method for {@link jcifs.internal.smb1.com.SmbComClose#writeBytesWireFormat(byte[], int)}.
         */
        @Test
        public void testWriteBytesWireFormat() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbExceptionTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.ValueSource;
    
    import jcifs.BaseTest;
    
    /**
     * Test class for SmbException functionality
     */
    @DisplayName("SmbException Tests")
    class SmbExceptionTest extends BaseTest {
    
        @Test
        @DisplayName("Should create SmbException with NT status code")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

        }
    
        @Test
        @DisplayName("Test decode with different buffer offset")
        void testDecodeWithDifferentOffset() throws SMBProtocolDecodingException {
            // Prepare test data with different offset
            byte[] buffer = new byte[100];
            int bufferIndex = 50;
    
            // Set test values
            int testCapabilities = 0xABCDEF00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            // Setup mock name
            lenient().when(mockName.writeWireFormat(any(byte[].class), anyInt())).thenReturn(34);
            mockName.hexCode = 0x20;
            mockName.name = "TEST";
            mockName.scope = "test.scope";
        }
    
        @Test
        void constructor_shouldInitializeFieldsCorrectly() throws Exception {
            // Act
            nodeStatusRequest = new NodeStatusRequest(mockConfig, mockName);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
Back to top