Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 142 for testLink (3.82 sec)

  1. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

    class NegotiateContextRequestTest {
    
        @Mock
        private Configuration mockConfig;
    
        private static final int BUFFER_SIZE = 1024;
    
        /**
         * Test custom implementation of NegotiateContextRequest for interface testing
         */
        static class TestNegotiateContextRequest implements NegotiateContextRequest {
            private final int contextType;
    
            TestNegotiateContextRequest(int contextType) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

        @Test
        @DisplayName("Test concrete implementation with multiple scenarios")
        void testConcreteImplementation() throws SMBProtocolDecodingException {
            // Create a concrete implementation for comprehensive testing
            CommonServerMessageBlockResponse concreteResponse = new CommonServerMessageBlockResponse() {
                private boolean async = false;
                private CommonServerMessageBlockResponse next;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SmbCircuitBreaker.java

     *
     * The circuit breaker has three states:
     * - CLOSED: Normal operation, requests pass through
     * - OPEN: Service is failing, requests are blocked
     * - HALF_OPEN: Testing if service has recovered
     */
    public class SmbCircuitBreaker {
    
        private static final Logger log = LoggerFactory.getLogger(SmbCircuitBreaker.class);
    
        /**
         * Circuit breaker states
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

         */
        @Test
        void testSuccessfulHandshake() throws IOException, SecurityException {
            // This test is simplified to verify basic handshake behavior
            // Full NTLM handshake testing would require more complex mocking
    
            // Arrange - Mock a server that supports NTLM
            mockResponse(HTTP_UNAUTHORIZED, "Unauthorized", Collections.singletonMap("WWW-Authenticate", Collections.singletonList("NTLM")),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SimpleCircuitBreaker.java

        /**
         * Circuit breaker states
         */
        public enum State {
            CLOSED, // Normal operation
            OPEN, // Failing, requests blocked
            HALF_OPEN // Testing recovery
        }
    
        private final String name;
        private final AtomicReference<State> state = new AtomicReference<>(State.CLOSED);
        private final AtomicInteger consecutiveFailures = new AtomicInteger(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

     * Test class for RuleManager interface.
     * Tests the contract and behavior of RuleManager implementations.
     */
    public class RuleManagerTest extends PlainTestCase {
    
        /**
         * Test implementation of RuleManager for testing purposes
         */
        public static class TestRuleManager implements RuleManager {
            private final List<Rule> rules = new ArrayList<>();
            private int getRuleCallCount = 0;
    
            @Override
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NetworkExplorerTest.java

         */
        @Test
        void testDoFile() throws Exception {
            initializeNetworkExplorer(false, "jCIFS");
    
            // Setup mock file with minimal required behavior
            String content = "File content for testing";
            byte[] contentBytes = content.getBytes();
    
            when(smbFile.length()).thenReturn((long) contentBytes.length);
            when(smbFile.getInputStream()).thenReturn(new ByteArrayInputStream(contentBytes));
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/TransformerTest.java

                return null;
            }
    
            @Override
            public String getName() {
                return name;
            }
        }
    
        /**
         * Transformer that throws exceptions for testing error handling
         */
        public static class ExceptionThrowingTransformer implements Transformer {
            private final String name;
            private boolean throwInTransform = false;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 28K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmSspTest.java

        // This is a valid Type 3 message with proper structure
        private final String type3MessageBase64 = createValidType3Message();
    
        /**
         * Creates a valid Type 3 NTLM message for testing
         */
        private static String createValidType3Message() {
            // Build a properly formatted Type 3 message
            byte[] message = new byte[200];
    
            // NTLMSSP signature
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  10. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

        }
    
        @Test
        @DisplayName("Should handle invalid protocol ID length")
        void testInvalidProtocolIdLength() {
            // Protocol ID is a constant in transform header, not settable
            // Testing invalid protocol ID during decode instead
            byte[] invalidBuffer = new byte[52];
            // Write invalid protocol ID
            invalidBuffer[0] = 0x00;
            invalidBuffer[1] = 0x00;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top