- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 4,281 for should (0.28 sec)
-
src/test/java/jcifs/smb1/UniAddressTest.java
assertEquals("NEXT", next, "nextCalledName should delegate to NbtAddress when called"); } @Test void nextCalledNameWithInetAddressReturnsSMBSERVERFirstIfNotDefault() { // Arrange InetAddress addr = mock(InetAddress.class); when(addr.getHostName()).thenReturn("mycomputer.foo.com"); UniAddress ua = new UniAddress(addr); // Act: first call should set to SMBSERVER_NAME
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcErrorTest.java
void testDcerpcFaultInvalidTag() { assertEquals(0x1C000006, DcerpcError.DCERPC_FAULT_INVALID_TAG); } @Test @DisplayName("Should verify DCERPC_FAULT_CONTEXT_MISMATCH constant value") void testDcerpcFaultContextMismatch() { assertEquals(0x1C00001A, DcerpcError.DCERPC_FAULT_CONTEXT_MISMATCH); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
NdrShort ndrShort = new NdrShort(inputValue); // Then: Value should be masked with 0xFF (lower 8 bits) assertEquals(inputValue & 0xFF, ndrShort.value, "Constructor should mask value with 0xFF"); } @Test @DisplayName("Should handle zero value correctly") void testConstructorZero() { // Given/When: Creating NdrShort with zero
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
// Test GoodBot - should parse valid directives and ignore invalid ones assertNotNull(robotsTxt.getDirective("goodbot")); assertFalse(robotsTxt.allows("/admin/", "GoodBot")); assertTrue(robotsTxt.allows("/public/", "GoodBot")); // Invalid directives should not cause parsing to fail // Test crawl-delay with invalid values // Invalid number should be ignored, valid ones should workRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationRequestTest.java
// When & Then assertTrue(negotiationRequest.isSigningEnforced(), "First call should return true"); assertFalse(negotiationRequest.isSigningEnforced(), "Second call should return false"); assertTrue(negotiationRequest.isSigningEnforced(), "Third call should return true"); verify(negotiationRequest, times(3)).isSigningEnforced(); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaConfigurationTest.java
assertTrue(config.isUseRDMA(), "RDMA should be enabled"); assertEquals("disni", config.getRdmaProvider(), "Provider should be disni"); assertEquals(16384, config.getRdmaReadWriteThreshold(), "Threshold should be 16KB"); assertEquals(131072, config.getRdmaMaxSendSize(), "Max send size should be 128KB"); assertEquals(131072, config.getRdmaMaxReceiveSize(), "Max receive size should be 128KB");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 5.1K bytes - Viewed (0) -
tests/test_path.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 20.5K bytes - Viewed (2) -
src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java
// Assert - verify inheritance chain assertTrue(msg instanceof samr.SamrConnect2, "Should extend SamrConnect2"); assertTrue(msg instanceof DcerpcMessage, "Should extend DcerpcMessage"); assertTrue(msg instanceof NdrObject, "Should extend NdrObject"); } @Test @DisplayName("should inherit getOpnum method") void testGetOpnumMethod() { // ArrangeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
int encodedLen = encodable.encode(dest, 0); // Verify encoded length assertEquals(3, encodedLen, "Encoded length should be equal to the specified length"); // Verify content assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset"); } @Test void testEncodeWithOffset() { // Test encoding with a destination offsetRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0)