- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 151 for test_constructor (0.16 sec)
-
src/test/java/jcifs/internal/SmbNegotiationTest.java
negotiation = new SmbNegotiation(mockRequest, mockResponse, testRequestBuffer, testResponseBuffer); } @Test @DisplayName("Constructor should properly initialize all fields") void testConstructor() { // Verify all fields are properly initialized assertNotNull(negotiation); assertSame(mockRequest, negotiation.getRequest()); assertSame(mockResponse, negotiation.getResponse());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (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 }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/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); // WhenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
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); // ThenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
} @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create echo request with correct command") void testConstructor() throws Exception { Smb2EchoRequest request = new Smb2EchoRequest(mockConfig); assertNotNull(request); // Verify command is set to SMB2_ECHO (0x000D)Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (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;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (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());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0)