- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 112 for testConstructor (0.21 sec)
-
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
import org.junit.jupiter.api.Test; import jcifs.internal.util.SMBUtil; /** * Unit tests for DirectoryLeaseContext */ public class DirectoryLeaseContextTest { @Test public void testConstructor() { Smb2LeaseKey key = new Smb2LeaseKey(); int leaseState = DirectoryLeaseState.DIRECTORY_READ_HANDLE; DirectoryCacheScope scope = DirectoryCacheScope.IMMEDIATE_CHILDREN;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
wrapper = new CIFSContextCredentialWrapper(mockDelegate, mockCredentials); } @Test @DisplayName("Should construct with delegate and credentials") void testConstructor() { // Verify that the constructor correctly sets the delegate (inherited from CIFSContextWrapper) // and the credentials. The delegate is tested implicitly by calling super's methods.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
void setUp() { MockitoAnnotations.openMocks(this); outputBuffer = new byte[1024]; response = new TransCallNamedPipeResponse(mockConfig, outputBuffer); } @Test void testConstructor() { assertNotNull(response); // Verify that the outputBuffer is stored properly byte[] testData = new byte[] { 1, 2, 3, 4, 5 };
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.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 trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL); assertNotNull(trans2QueryPathInfo);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
response = new NtTransQuerySecurityDescResponse(mockConfig); } @Test @DisplayName("Test constructor creates instance with null security descriptor") void testConstructor() { assertNotNull(response); assertNull(response.getSecurityDescriptor()); } @Test @DisplayName("Test writeSetupWireFormat returns 0") void testWriteSetupWireFormat() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
session.transport = transport; // Setup session to return transport via method call when(session.transport()).thenReturn(transport); } @Test void testConstructor() { // Test constructor with a specific service SmbTree tree = new SmbTree(session, "testShare", "testService"); assertEquals("TESTSHARE", tree.share);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test constructor initializes fields correctly") void testConstructor() { // Act TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH); // Assert assertNotNull(trans);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
MockitoAnnotations.openMocks(this); response = new TransWaitNamedPipeResponse(mockConfig); } @Test @DisplayName("Constructor should initialize TransWaitNamedPipeResponse") void testConstructor() { // Assert assertNotNull(response); // Verify parent class is properly initialized assertTrue(response instanceof SmbComTransactionResponse); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0)