- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 100 for openMocks (0.39 seconds)
-
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
/** * Test class for Smb2CancelRequest */ class Smb2CancelRequestTest { @Mock private Configuration mockConfig; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test constructor with non-zero asyncId sets async flag") void testConstructorWithNonZeroAsyncId() { // Given long mid = 12345L;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
private static final String TEST_PIPE_NAME = "\\\\PIPE\\\\testpipe"; private static final byte[] TEST_DATA = "Test pipe data".getBytes(); @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test constructor initializes fields correctly") void testConstructorInitialization() { // Given int offset = 0; int length = TEST_DATA.length;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
@Mock private NtlmPasswordAuthenticator mockNtlmPasswordAuthenticator; private CIFSContextCredentialWrapper wrapper; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); wrapper = new CIFSContextCredentialWrapper(mockDelegate, mockCredentials); } @Test @DisplayName("Should construct with delegate and credentials") void testConstructor() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
class Trans2FindFirst2Test { @Mock private Configuration mockConfig; private Trans2FindFirst2 trans2FindFirst2; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getMaximumBufferSize()).thenReturn(65535); when(mockConfig.getTransactionBufferSize()).thenReturn(65535); when(mockConfig.isUseUnicode()).thenReturn(true);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
@Mock private Configuration mockConfig; @Mock private CIFSContext mockContext; private Smb2EchoRequest echoRequest; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockContext.getConfig()).thenReturn(mockConfig); echoRequest = new Smb2EchoRequest(mockConfig); } @Nested @DisplayName("Constructor Tests") class ConstructorTests {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
class Trans2GetDfsReferralTest { @Mock private Configuration mockConfig; private Trans2GetDfsReferral trans2GetDfsReferral; @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";Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
private static final int FILE_NOTIFY_CHANGE_STREAM_WRITE = 0x00000800; private static final int FILE_NOTIFY_CHANGE_ALL = 0x00000FFF; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getNotifyBufferSize()).thenReturn(4096); when(mockConfig.getTransactionBufferSize()).thenReturn(65535); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
class NtTransQuerySecurityDescResponseTest { @Mock private Configuration mockConfig; private NtTransQuerySecurityDescResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); response = new NtTransQuerySecurityDescResponse(mockConfig); } @Test @DisplayName("Test constructor creates instance with null security descriptor") void testConstructor() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
class SmbTreeTest { @Mock private SmbSession session; @Mock private SmbTransport transport; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Setup transport fields that are accessed directly transport.tconHostName = "testHost"; // Setup session.transport field (accessed directly in SmbTree) session.transport = transport;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.2K bytes - Click Count (0)