- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 99 for openMocks (0.04 sec)
-
src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java
@Mock private PersistentHandleManager mockManager; private HandleReconnector reconnector; private HandleInfo testHandle; @BeforeEach public void setUp() { MockitoAnnotations.openMocks(this); reconnector = new HandleReconnector(mockManager, 2, 50); // 2 retries, 50ms delay HandleGuid guid = new HandleGuid(); byte[] fileId = new byte[16]; for (int i = 0; i < 16; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java
import org.mockito.Mock; import org.mockito.MockitoAnnotations; class NdrSmallTest { @Mock private NdrBuffer mockNdrBuffer; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test void testConstructor_validValue() { // Test with a value within the byte range NdrSmall ndrSmall = new NdrSmall(123);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
class Smb2WriteResponseTest { @Mock private Configuration mockConfig; private Smb2WriteResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); response = new Smb2WriteResponse(mockConfig); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test
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/lease/DirectoryLeaseManagerTest.java
@Mock private SmbFile mockFile2; private DirectoryLeaseManager directoryLeaseManager; private AutoCloseable mocks; @BeforeEach public void setUp() { mocks = MockitoAnnotations.openMocks(this); when(context.getConfig()).thenReturn(config); when(config.isDirectoryNotificationsEnabled()).thenReturn(false); // Disable for unit tests
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
@Mock private NtlmPasswordAuthentication mockAuth; private SmbComSessionSetupAndX setupAndX; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); // Create a real ServerData instance as it's not mockable (inner class) SmbTransport.ServerData serverData = mockTransport.new ServerData(); serverData.security = ServerMessageBlock.SECURITY_USER;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
private ArgumentCaptor<MsrpcSamrCloseHandle> closeHandleCaptor; @BeforeEach void setUp() { // Initialize mocks and captors before each test MockitoAnnotations.openMocks(this); openDomainCaptor = ArgumentCaptor.forClass(MsrpcSamrOpenDomain.class); closeHandleCaptor = ArgumentCaptor.forClass(MsrpcSamrCloseHandle.class); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java
private jcifs.Configuration mockConfig; private PersistentHandleManager manager; private Path tempDir; @BeforeEach public void setUp() throws IOException { MockitoAnnotations.openMocks(this); // Create temporary directory for test state tempDir = Files.createTempDirectory("jcifs-test-handles"); // Set system property for handle state directory
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
private Configuration config; @Mock private Configuration mockConfig; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); Properties props = new Properties(); config = new PropertyConfiguration(props); } @Test void testConstructor() { // Test constructor with SMB_INFO_ALLOCATION
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
private Configuration config; @Mock private Configuration mockConfig; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); Properties props = new Properties(); config = new PropertyConfiguration(props); response = new Trans2SetFileInformationResponse(config); } @Test
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/dcerpc/msrpc/LsaPolicyHandleTest.java
// For now, let's assume we can mock their behavior through the sendrecv method of DcerpcHandle. @BeforeEach void setUp() { // MockitoAnnotations.openMocks(this); // Not needed with @ExtendWith(MockitoExtension.class) } @Test void constructor_shouldOpenPolicySuccessfully() throws IOException { // Arrange String server = "testServer";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0)