- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 550 for correctos (0.13 sec)
-
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/smb1/smb1/HandlerTest.java
// Act & Assert assertThrows(NullPointerException.class, () -> handler.openConnection(null)); } @Test @DisplayName("URL created with handler parses SMB URL correctly") void testUrlCreationWithHandler() throws Exception { // Act - Create various SMB URLs using the handler URL url1 = new URL(null, "smb://host/share", handler);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java
// Verify that the super constructor was called with the correct arguments // Note: Mockito cannot directly verify super constructor calls. // We assume if the object is created, the super constructor was called. // We can verify the state of the object after construction. // Verify ptype and flags are set correctly assertEquals(0, policy.getPtype(), "ptype should be 0");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.7K 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/internal/smb2/lock/Smb2LockRequestTest.java
} } @Nested @DisplayName("FileId Tests") class FileIdTests { @Test @DisplayName("Should set file ID correctly") void testSetFileId() { byte[] newFileId = new byte[16]; new SecureRandom().nextBytes(newFileId); assertDoesNotThrow(() -> request.setFileId(newFileId)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java
} finally { executor.shutdownNow(); } assertTrue(future.isDone()); assertFalse(future.isCancelled()); } /** Tests that the {@link Future#get(long, TimeUnit)} method times out correctly. */ public void testTimeoutOnGetWorksCorrectly() throws InterruptedException, ExecutionException { // The task thread waits for the latch, so we expect a timeout here. try { future.get(20, MILLISECONDS);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
@Test @DisplayName("readULong correctly interprets little endian") void testReadULong() { byte[] a = new byte[] { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04 }; int result = NtlmMessage.readULong(a, 0); assertEquals(0x04030201, result, "ULong should be little‑endian"); } @Test @DisplayName("readUShort correctly interprets little endian") void testReadUShort() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K 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/internal/smb2/create/CreateContextResponseTest.java
return 0; } } @Nested @DisplayName("Interface Contract Tests") class InterfaceContractTests { @Test @DisplayName("Interface should be correctly implemented by mock") void testInterfaceImplementation() { CreateContextResponse response = mock(CreateContextResponse.class); assertNotNull(response);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K 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)