- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 721 for correcte (0.21 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
result = response.readParametersWireFormat(smallBuffer, 0, -1); assertEquals(0, result); } @Test @DisplayName("Test command type is correct") void testCommandType() { // Verify that the command is not set in constructor (defaults to 0) assertEquals(0, response.getCommand()); // Verify we can change the subcommand
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java
import jcifs.internal.util.SMBUtil; /** * Test class for FsctlPipeWaitRequest */ class FsctlPipeWaitRequestTest { @Test @DisplayName("Test constructor with name only sets correct fields") void testConstructorWithNameOnly() { // Test with simple pipe name String pipeName = "TestPipe"; FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtExceptionTest.java
import jcifs.CIFSException; class NbtExceptionTest { /** * Test the constructor of NbtException. * It should correctly set errorClass and errorCode, and the message should be derived from getErrorString. */ @Test @DisplayName("NbtException constructor should correctly set error class, error code, and message") void testConstructor() { int errorClass = NbtException.ERR_NAM_SRVC;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
} @Test @DisplayName("Should define getCapacity method") void shouldDefineGetCapacityMethod() throws NoSuchMethodException { // Verify method exists with correct signature assertNotNull(AllocInfo.class.getMethod("getCapacity")); assertEquals(long.class, AllocInfo.class.getMethod("getCapacity").getReturnType()); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
class ConstantsTests { @Test @DisplayName("Should have correct FLAGS_NAME_LIST_REFERRAL value") void testFlagsNameListReferralConstant() { assertEquals(0x0002, Trans2GetDfsReferralResponse.FLAGS_NAME_LIST_REFERRAL); } @Test @DisplayName("Should have correct FLAGS_TARGET_SET_BOUNDARY value") void testFlagsTargetSetBoundaryConstant() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
} @Test void testConstructor() { // Verify that the response is created with correct configuration and buffer assertNotNull(response); // Use reflection to verify the outputBuffer is set correctly try { Field outputBufferField = TransTransactNamedPipeResponse.class.getDeclaredField("outputBuffer");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
assertEquals(2000000L, basicInfo.getLastWriteTime()); assertEquals(0L, basicInfo.getSize()); // Basic info always returns 0 for size } @Test @DisplayName("Should generate correct toString for basic info") void testBasicInfoToString() { Trans2QueryPathInformationResponse.SmbQueryFileBasicInfo basicInfo = response.new SmbQueryFileBasicInfo(); basicInfo.attributes = 0x20;
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/context/CIFSContextWrapperTest.java
} @Test void testGetPipe() throws CIFSException, MalformedURLException { // Test getPipe(String url, int pipeType) method String url = "smb://server/IPC$/pipeName"; // Corrected URL for named pipe int pipeType = 1; SmbPipeResource mockSmbPipeResource = mock(SmbNamedPipe.class); // Similar to testGetSmbResource, we cannot directly mock `new SmbNamedPipe()`.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
@Test @DisplayName("Should create request with correct command type") void testConstructorSetsCorrectCommand() throws Exception { // Given Configuration mockConfig = mock(Configuration.class); // When Smb2TreeDisconnectRequest req = new Smb2TreeDisconnectRequest(mockConfig); // Then - verify command is set correctly using reflectionRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportExceptionTest.java
// Test with various messages String message = "Test error message"; TransportException exception = new TransportException(message); // Verify the exception has the correct message assertNotNull(exception); assertEquals(message, exception.getMessage()); assertNull(exception.getCause()); // Test with empty stringRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0)