- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,214 for correct (0.07 sec)
-
src/test/java/jcifs/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.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java
// These tests should be removed or replaced with actual constants } /** * Test individual FLAGS2 constants. */ @Test @DisplayName("FLAGS2 individual constants are correct") void flags2ConstantsTest() { // Test individual flag values assertEquals(0x0001, SmbConstants.FLAGS2_LONG_FILENAMES); assertEquals(0x0002, SmbConstants.FLAGS2_EXTENDED_ATTRIBUTES);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
@Test @DisplayName("Should return correct transport context") void testGetTransportContext() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); assertEquals(mockContext, handle.getTransportContext()); } @Test @DisplayName("Should return correct server name") void testGetServer() throws Exception {
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/Smb2EchoRequestTest.java
@Test @DisplayName("Should create correct response type") void testCreateResponse() { Smb2EchoResponse response = echoRequest.createResponse(mockContext, echoRequest); assertNotNull(response); assertInstanceOf(Smb2EchoResponse.class, response); } @Test @DisplayName("Should create response with correct configuration")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
"Should return correct message for error 1"); assertEquals("DCERPC_BIND_ERR_PROPOSED_TRANSFER_SYNTAXES_NOT_SUPPORTED", getResultMessageMethod.invoke(null, 2), "Should return correct message for error 2"); assertEquals("DCERPC_BIND_ERR_LOCAL_LIMIT_EXCEEDED", getResultMessageMethod.invoke(null, 3), "Should return correct message for error 3"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
// Then assertEquals(currentTime, lastModified, "Should return correct last modified time"); assertEquals(currentTime - 1000, lastAccess, "Should return correct last access time"); assertEquals(currentTime - 2000, createTime, "Should return correct create time"); assertTrue(createTime <= lastAccess, "Create time should be before or equal to last access");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
assertEquals(4, nextOffset, "Should return correct next offset."); assertEquals(src.length, NtlmMessage.readUShort(dest, 0), "Length should be written correctly."); assertEquals(src.length, NtlmMessage.readUShort(dest, 2), "Max length should be written correctly."); // Test with null source array dest = new byte[8];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
* The tests verify that: * <ul> * <li>encoding and decoding round‑trip correctly handle typical, zero, * and extreme {@code long} values.</li> * <li>encode/decode methods interact correctly with a mocked * {@link NdrBuffer} so that the correct method is called with * the correct argument.</li> * <li>passing {@code null} throws {@link NullPointerException}. * </ul> *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
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/pac/PacGroupTest.java
*/ @Test void testConstructor() { // Verify that the constructor correctly sets the id and attributes assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor."); assertEquals(attributes, pacGroup.getAttributes(), "The attributes should be correctly set in the constructor."); } /** * Test method for {@link jcifs.pac.PacGroup#getId()}.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0)