- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 3,764 for shouldn (0.08 sec)
-
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) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
assertNotNull(bindWithParams, "Constructor should create instance"); assertEquals(0, bindWithParams.getOpnum(), "Opnum should be 0"); assertEquals(11, bindWithParams.getPtype(), "Ptype should be 11 for bind message"); assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, bindWithParams.getFlags(), "Flags should be set for first and last fragment");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
if (value == 4) { // Should succeed assertDoesNotThrow(() -> { int result = response.readBytesWireFormat(buffer, 0); assertEquals(4, result); }); } else { // Should throw exception SMBProtocolDecodingException exception =Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
// Should encode successfully at the beginning int encoded = context.encode(smallBuffer, 0); assertEquals(6, encoded); // Should handle encoding at the end of buffer correctly assertDoesNotThrow(() -> context.encode(smallBuffer, 4)); } @Test @DisplayName("Should preserve data integrity through encode/decode cycle")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmFlagsTest.java
} @Test void testNtlmNegotiateOem() { assertEquals(0x00000002, NtlmFlags.NTLMSSP_NEGOTIATE_OEM, "NTLMSSP_NEGOTIATE_OEM should be 0x00000002"); } @Test void testNtlmRequestTarget() { assertEquals(0x00000004, NtlmFlags.NTLMSSP_REQUEST_TARGET, "NTLMSSP_REQUEST_TARGET should be 0x00000004"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
assertEquals(0, buffer[13]); assertEquals((byte) 0xFF, buffer[9]); // Should not modify before offset assertEquals((byte) 0xFF, buffer[14]); // Should not modify after encoded data } @Test @DisplayName("Should handle offset in decode") void testDecodeWithOffset() throws SMBProtocolDecodingException { // Arrange
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
} @Test @DisplayName("Constructor should initialize TransPeekNamedPipeResponse") void testConstructor() { // Assert assertNotNull(response); assertTrue(response instanceof SmbComTransactionResponse); assertEquals(0, response.getAvailable()); } @Test @DisplayName("Should verify status constants are correctly defined") void testStatusConstants() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0)