- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 3,060 for Shouldn (0.05 sec)
-
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
// Then - Buffer should have expected size assertNotNull(buffer, "Buffer should not be null"); assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, buffer.length, "Buffer should have TRANSACTION_BUF_SIZE"); // The validation in getBuffer() ensures size is within bounds (0 < size <= 1MB) assertTrue(buffer.length > 0, "Buffer size should be positive");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)