- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 106 for testConstructor2 (0.06 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
private Configuration mockConfig; private SmbComQueryInformationResponse response; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); } @Test void testConstructor() { // Test constructor with positive timezone offset long serverTimeZoneOffset = 3600000L; // 1 hour in milliseconds response = new SmbComQueryInformationResponse(mockConfig, serverTimeZoneOffset);
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/internal/smb1/com/SmbComRenameTest.java
} /** * Test constructor initialization with valid parameters */ @Test @DisplayName("Test constructor initializes fields correctly") public void testConstructor() throws Exception { // Given String oldFileName = "oldFile.txt"; String newFileName = "newFile.txt"; // When smbComRename = new SmbComRename(config, oldFileName, newFileName);
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/internal/smb2/info/Smb2SetInfoResponseTest.java
void setUp() { mockConfig = mock(Configuration.class); response = new Smb2SetInfoResponse(mockConfig); } @Test @DisplayName("Test constructor initializes with config") void testConstructor() { assertNotNull(response); // Command is not set in constructor, only after decoding assertEquals((short) 0, response.getCommand()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
response = new SmbComNegotiateResponse(mockContext); } catch (Exception e) { throw new RuntimeException("Failed to set up test", e); } } @Test public void testConstructor() { assertNotNull(response); assertEquals(DialectVersion.SMB1, response.getSelectedDialect()); } @Test public void testReadParameterWordsWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java
// Initialize default dialects defaultDialects = new int[] { 0x0202, 0x0210, 0x0300, 0x0302, 0x0311 }; } @Test @DisplayName("Test constructor with valid parameters") void testConstructor() { ValidateNegotiateInfoRequest request = new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, DEFAULT_SECURITY_MODE, defaultDialects); assertNotNull(request); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
MockitoAnnotations.openMocks(this); response = new NtTransNotifyChangeResponse(mockConfig); } @Test @DisplayName("Test constructor creates instance with empty notification list") void testConstructor() { assertNotNull(response); assertNotNull(response.getNotifyInformation()); assertTrue(response.getNotifyInformation().isEmpty()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
} request = new Smb2FlushRequest(mockConfig, testFileId); } @Test @DisplayName("Constructor should initialize with correct command and file ID") void testConstructor() throws Exception { // Verify command is set correctly (SMB2_FLUSH = 0x0007) Field commandField = ServerMessageBlock2.class.getDeclaredField("command"); commandField.setAccessible(true);
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/internal/smb1/trans/TransPeekNamedPipeTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Constructor should initialize with correct values") void testConstructor() { // Act transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_FID); // Assert assertNotNull(transPeekNamedPipe);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
void setUp() throws Exception { MockitoAnnotations.openMocks(this); Properties props = new Properties(); config = new PropertyConfiguration(props); } @Test void testConstructor() { // Test constructor initializes all fields correctly trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
MockitoAnnotations.openMocks(this); response = new TransPeekNamedPipeResponse(mockConfig); } @Test @DisplayName("Constructor should initialize TransPeekNamedPipeResponse") void testConstructor() { // Assert assertNotNull(response); assertTrue(response instanceof SmbComTransactionResponse); assertEquals(0, response.getAvailable()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0)