- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 574 for correctos (0.28 sec)
-
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
class SamrCloseHandleTests { @Test @DisplayName("Should construct with correct opnum") void testConstructorAndOpnum() { // When: Creating close handle message samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle); // Then: Should have correct opnum and handle assertEquals(0x01, message.getOpnum());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcEnumerateAliasesInDomainTest.java
assertEquals(mockDomainHandle, request.domain_handle, "The domain handle should be set correctly."); assertEquals(acctFlags, request.acct_flags, "The account flags should be set correctly."); assertEquals(mockSamArray, request.sam, "The sam array should be set correctly."); // ptype and flags are protected fields in DcerpcMessage, cannot test directly }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
@Test @DisplayName("Should set padding correctly") void testSetPadding() { assertDoesNotThrow(() -> request.setPadding((byte) 0)); assertDoesNotThrow(() -> request.setPadding((byte) 1)); assertDoesNotThrow(() -> request.setPadding((byte) 0xFF)); } @Test @DisplayName("Should set read flags correctly") void testSetReadFlags() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
verify(mockNdrBuffer, times(1)).dec_ndr_hyper(); verifyNoMoreInteractions(mockNdrBuffer); // Verify that the NdrHyper object's value was updated correctly assertEquals(decodedValue, ndrHyper.value, "Decode should update the value correctly."); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
assertNotSame(first, second, "Should create new connection when session limit reached"); } @Test @DisplayName("Should access fail counts map correctly") void testFailCountsAccess() throws Exception { // Given: Access to fail counts via reflection Field failCountsField = SmbTransportPoolImpl.class.getDeclaredField("failCounts");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarCloseTest.java
* Verifies that the handle, ptype, and flags are correctly initialized. */ @Test void testConstructor() { // Create an instance of MsrpcLsarClose with the mock handle MsrpcLsarClose lsarClose = new MsrpcLsarClose(mockHandle); // Verify that the handle passed to the constructor is correctly set in the superclass
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
} finally { der.close(); } return collector.toByteArray(); } @Test @DisplayName("Round-trip: all fields set encodes and parses back correctly") void testRoundTripAllFields() throws Exception { ASN1ObjectIdentifier[] mechs = new ASN1ObjectIdentifier[] { OID_KRB, OID_NTLM };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
customRequest.setFileId(testFileId); // Then assertArrayEquals(testFileId, customRequest.getFileId(), "Custom implementation should store file ID correctly"); assertEquals(1, customRequest.getSetCount(), "Should track set count correctly"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
} @Test @DisplayName("Should create request with correct command type and path") void testConstructorSetsCorrectCommandAndPath() throws Exception { // Given & When String path = "\\\\testserver\\testshare"; Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, path); // Then - verify command is set correctly using reflection
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
@Test @DisplayName("readInt4 should correctly read 32-bit integer") void testReadInt4() { byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 }; int result = SessionServicePacket.readInt4(src, 0); assertEquals(0x12345678, result); } @Test @DisplayName("readInt4 with negative bytes should handle correctly") void testReadInt4WithNegativeBytes() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0)