- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 105 for testConstructors (0.66 seconds)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Constructor should initialize with correct values") void testConstructor() throws Exception { // Given String filename = "\\\\server\\share\\file.txt"; // When trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, filename); // ThenCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11K bytes - Click Count (0) -
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;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 10.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java
public void setUp() { leaseKey = new Smb2LeaseKey(); entry = new DirectoryCacheEntry(directoryPath, leaseKey, DirectoryCacheScope.IMMEDIATE_CHILDREN); } @Test public void testConstructor() { assertEquals(directoryPath, entry.getDirectoryPath()); assertEquals(leaseKey, entry.getLeaseKey()); assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, entry.getScope());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 8.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
transaction = new TestSmbComTransaction(mockConfig, SmbComTransaction.SMB_COM_TRANSACTION, SmbComTransaction.TRANS2_FIND_FIRST2); } @Test @DisplayName("Test constructor initialization") void testConstructor() { // Verify command and subcommand are set correctly assertEquals(SmbComTransaction.SMB_COM_TRANSACTION, transaction.getCommand());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
} @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create response with configuration") void testConstructor() { Smb2WriteResponse writeResponse = new Smb2WriteResponse(mockConfig); assertNotNull(writeResponse); // Note: getConfig() is protected, cannot test directly }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
request = new Smb2ChangeNotifyRequest(mockConfig, testFileId); } @Test @DisplayName("Should create request with configuration and file ID") void testConstructor() { // Given Configuration config = mock(Configuration.class); when(config.getNotifyBufferSize()).thenReturn(8192); // WhenCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.4K bytes - Click Count (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
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.3K bytes - Click Count (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);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (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);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0)