- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 709 for correcta (0.04 sec)
-
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
} @Test void testConstructorAndGetValue() { // Test that the constructor correctly initializes the value long expectedValue = 123456789012345L; NdrHyper ndrHyper = new NdrHyper(expectedValue); assertEquals(expectedValue, ndrHyper.value, "Constructor should set the correct value."); } @Test void testEncode() throws NdrException { // Test the encode method
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/internal/smb2/io/Smb2FlushRequestTest.java
} @Test @DisplayName("createResponse should return Smb2FlushResponse with correct config") void testCreateResponse() throws Exception { Smb2FlushResponse response = request.createResponse(mockContext, request); assertNotNull(response); // Verify response has correct config Field configField = ServerMessageBlock2.class.getDeclaredField("config");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java
assertEquals(2, entries.length, "The number of entries should be correct."); // The getEntries method returns FileEntry objects. We can check their names. assertEquals("\\domain\share1", entries[0].getName(), "The name of the first share should be correct."); assertEquals("\\domain\share2", entries[1].getName(), "The name of the second share should be correct."); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java
* Verifies that the correct string is reconstructed from raw UTF-16LE bytes. */ @Test void testGetTargetNameFromRawBytesConstructor() { String originalString = "RawBytesTarget"; byte[] rawBytes = originalString.getBytes(StandardCharsets.UTF_16LE); AvTargetName avTargetName = new AvTargetName(rawBytes); // Verify that getTargetName correctly decodes the raw bytes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
assertNull(context.getCiphers()); } } @Nested @DisplayName("Context Type Tests") class ContextTypeTests { @Test @DisplayName("Should return correct context type") void testGetContextType() { EncryptionNegotiateContext context = new EncryptionNegotiateContext();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSidAttributesTest.java
} /** * Test method for {@link jcifs.pac.PacSidAttributes#getAttributes()}. */ @Test void testGetAttributes() { // Test the getAttributes method assertEquals(attributes, pacSidAttributes.getAttributes(), "getAttributes should return the correct attributes."); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// Then assertEquals(mid, request.getMid(), "MID should be set correctly"); assertEquals(asyncId, request.getAsyncId(), "AsyncId should be set correctly"); assertEquals(credits, request.getCredit(), "Credits should be set correctly"); assertEquals(treeId, request.getTreeId(), "Tree ID should be set correctly");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
assertEquals(HEADER_SIZE + CHUNK_SIZE, bytesWritten); // Verify source key at correct position for (int i = 0; i < SOURCE_KEY_SIZE; i++) { assertEquals(sourceKey[i], largeBuffer[position + i]); } // Verify chunk count at correct position assertEquals(1, SMBUtil.readInt4(largeBuffer, position + SOURCE_KEY_SIZE)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java
// Although we cannot directly verify the super constructor call with Mockito for a real class, // we can infer its correct behavior if the object is successfully constructed and its own fields are correct. // The super constructor is called with (domainHandle, 0, acct_flags, null, 0)
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/internal/smb2/lease/Smb2LeaseStateTest.java
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @DisplayName("Smb2LeaseState Tests") class Smb2LeaseStateTest { @Test @DisplayName("Should define correct lease state constants") void testLeaseStateConstants() { assertEquals(0x00, Smb2LeaseState.SMB2_LEASE_NONE); assertEquals(0x01, Smb2LeaseState.SMB2_LEASE_READ_CACHING);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.2K bytes - Viewed (0)