- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 103 for openMocks (0.37 sec)
-
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
private DirectoryLeaseManager directoryLeaseManager; private AutoCloseable mocks; @BeforeEach public void setUp() throws Exception { mocks = MockitoAnnotations.openMocks(this); when(context.getConfig()).thenReturn(config); when(config.isDirectoryNotificationsEnabled()).thenReturn(false); // Create real lease manager for integration testingRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/FileNotifyInformationTest.java
@TestInstance(TestInstance.Lifecycle.PER_CLASS) public class FileNotifyInformationTest { @Mock private FileNotifyInformation mockFileNotifyInfo; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Nested @DisplayName("Filter Flags Constants Tests") class FilterFlagsTests { @Test @DisplayName("Verify FILE_NOTIFY_CHANGE_FILE_NAME constant value")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
@Mock private ServerMessageBlock2Response mockResponse; private TestServerMessageBlock2Request testRequest; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); testRequest = new TestServerMessageBlock2Request(mockConfig); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/service/impl/UrlQueueServiceImplTest.java
private UrlQueueServiceImpl service; @Mock private MemoryDataHelper dataHelper; @Override protected void setUp() throws Exception { super.setUp(); MockitoAnnotations.openMocks(this); } public void test_add() { // Setup String sessionId = "session123"; String url = "https://example.com/page"; Queue<UrlQueueImpl<Long>> mockQueue = new LinkedList<>();Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
@Mock private CommonServerMessageBlockRequest request; @Mock private SMBSigningDigest digest; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test isAsync method returning true") void testIsAsyncTrue() { // Given when(response.isAsync()).thenReturn(true); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
@Mock private CommonServerMessageBlock serverMessageBlock; @Mock private Response response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test isValid returns true for valid negotiation") void testIsValidReturnsTrue() { // ArrangeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
/** * Test suite for DfsReferralResponseBuffer */ class DfsReferralResponseBufferTest { private DfsReferralResponseBuffer buffer; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); buffer = new DfsReferralResponseBuffer(); } @Nested @DisplayName("Constructor and Initial State Tests") class ConstructorTests { @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
*/ class FileSystemInformationTest { @Mock private FileSystemInformation mockFileSystemInfo; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } /** * Test implementation class for FileSystemInformation interface */ static class TestFileSystemInformation implements FileSystemInformation { private byte informationClass;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.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 @DisplayName("Test constructor with SMB_INFO_ALLOCATION")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
private static final long TEST_LAST_WRITE_TIME = 131234567900000L; private static final long TEST_LAST_ACCESS_TIME = 131234567880000L; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); Properties props = new Properties(); config = new PropertyConfiguration(props); } @Test @DisplayName("Test constructor with FileInformation parameter")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0)