- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 709 for correcta (0.04 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/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) -
src/test/java/jcifs/SmbTreeHandleTest.java
assertThrows(CIFSException.class, () -> smbTreeHandle.close(), "close() should throw CIFSException"); } /** * Test for isConnected() method. * Verifies that the method returns the correct connected status. */ @Test void testIsConnected() { when(smbTreeHandle.isConnected()).thenReturn(true); assertTrue(smbTreeHandle.isConnected(), "isConnected() should return true");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
assertEquals(CLOCK_SEQ_HI_AND_RESERVED, uuid.clock_seq_hi_and_reserved, "clock_seq_hi_and_reserved should be parsed correctly"); assertEquals(CLOCK_SEQ_LOW, uuid.clock_seq_low, "clock_seq_low should be parsed correctly"); assertArrayEquals(NODE, uuid.node, "node array should be parsed correctly"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
class InterfaceConstantsTests { @Test @DisplayName("Should have correct SMB_INFO_ALLOCATION constant value") void testSmbInfoAllocationConstant() { assertEquals((byte) -1, FileSystemInformation.SMB_INFO_ALLOCATION); } @Test @DisplayName("Should have correct FS_SIZE_INFO constant value") void testFsSizeInfoConstant() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
request = new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, TEST_PREVIOUS_SESSION_ID, TEST_TOKEN); } @Test @DisplayName("Should create request with correct parameters") void testConstructorSetsCorrectParameters() throws Exception { // Given & When int securityMode = 0x03; int capabilities = 0x0F; long previousSessionId = 0xFEDCBA9876543210L;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K 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/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/internal/smb2/tree/Smb2TreeConnectResponseTest.java
assertTrue(resp instanceof ServerMessageBlock2); assertTrue(resp instanceof TreeConnectResponse); } @Test @DisplayName("Should return correct share type constants") void testShareTypeConstants() { // Then assertEquals((byte) 0x1, Smb2TreeConnectResponse.SMB2_SHARE_TYPE_DISK);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
assertEquals(mockConfig, responseConfig); // Verify response has correct fileId assertEquals(testFileId, response.getFileId()); // Verify response has correct fileName assertEquals(testFileName, response.getFileName()); } @Test @DisplayName("size should return correct message size") void testSize() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0)