Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 3,060 for _shouldn (0.03 sec)

  1. src/test/java/jcifs/SmbSessionTest.java

                assertTrue(methodNames.contains("getConfig"), "Should contain getConfig method");
                assertTrue(methodNames.contains("unwrap"), "Should contain unwrap method");
                assertTrue(methodNames.contains("getContext"), "Should contain getContext method");
            }
    
            @Test
            @DisplayName("Should be a public interface")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/AddressTest.java

            String hostName = mockAddress.getHostName();
    
            // Then
            assertEquals(expectedHostName, hostName, "Should return configured hostname");
            assertNotNull(hostName, "Host name should not be null");
        }
    
        @Test
        @DisplayName("getHostAddress should return valid IP address string")
        void testGetHostAddressContract() {
            // Given
            String expectedAddress = "192.168.1.100";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            // Manually unblock
            assertTrue(rateLimiter.unblockIp(ip), "Manual unblock should succeed");
    
            // Should be allowed again
            assertTrue(rateLimiter.checkAttempt("user7", ip), "Should be allowed after manual unblock");
        }
    
        @Test
        public void testNullUsername() throws Exception {
            // Null username should be handled gracefully
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/HexdumpTest.java

        }
    
        @Test
        @DisplayName("Should handle empty byte array")
        void testToHexStringEmpty() {
            // Given
            byte[] data = {};
    
            // When
            String result = Hexdump.toHexString(data);
    
            // Then
            assertNotNull(result);
            assertEquals("", result);
        }
    
        @Test
        @DisplayName("Should handle null byte array")
        void testToHexStringNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/SmbNegotiationTest.java

            testResponseBuffer = new byte[] { 0x05, 0x06, 0x07, 0x08 };
            negotiation = new SmbNegotiation(mockRequest, mockResponse, testRequestBuffer, testResponseBuffer);
        }
    
        @Test
        @DisplayName("Constructor should properly initialize all fields")
        void testConstructor() {
            // Verify all fields are properly initialized
            assertNotNull(negotiation);
            assertSame(mockRequest, negotiation.getRequest());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

                }
            });
    
            MockSMailPostingDiscloser discloser = new MockSMailPostingDiscloser();
    
            // Should return early without doing anything
            try {
                notificationHelper.sendToSlack(null, discloser);
            } catch (Exception e) {
                fail("sendToSlack() should not throw an exception with blank URLs: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

            assertEquals(1, t.numThreads, "Default numThreads should be 1");
            assertEquals(1, t.numIter, "Default numIter should be 1");
            assertEquals(100L, t.delay, "Default delay should be 100");
            assertNull(t.url, "URL should be null by default");
            assertEquals(0, t.numComplete, "numComplete should start at 0");
            assertEquals(0L, t.ltime, "ltime should start at 0");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // The offset should point to the location after the fixed structure (relative to header start)
            int expectedOffset = Smb2Constants.SMB2_HEADER_LENGTH + 24;
            while ((expectedOffset % 8) != 0) {
                expectedOffset++; // Account for pad8
            }
            assertEquals(expectedOffset, securityBufferOffset);
        }
    
        @Test
        @DisplayName("Should handle large token correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/config/MultiChannelConfigurationTest.java

            assertTrue(config.isUseMultiChannel(), "Multi-channel should be enabled by default");
            assertEquals(4, config.getMaxChannels(), "Default max channels should be 4");
            assertEquals(1, config.getChannelBindingPolicy(), "Default binding policy should be preferred");
            assertEquals("adaptive", config.getLoadBalancingStrategy(), "Default strategy should be adaptive");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

            }).when(transport).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class));
    
            session.send(req, resp);
            // Response state should be reset
            assertFalse(resp.received, "Response flag should be reset");
            // transport.send should be called at least once (for sessionSetup and the actual request)
            verify(transport, atLeastOnce()).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top