- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 103 for openMocks (0.06 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessorTest.java
private CrawlerContainer crawlerContainer; @Mock private SitemapsHelper sitemapsHelper; @Override protected void setUp() throws Exception { super.setUp(); MockitoAnnotations.openMocks(this); } public void test_constructor() { // Test constructor SitemapsResponseProcessor proc = new SitemapsResponseProcessor(); assertNotNull(proc); }Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
class Smb2FlushResponseTest { @Mock private Configuration mockConfig; private Smb2FlushResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); response = new Smb2FlushResponse(mockConfig); } @Test @DisplayName("Constructor should initialize with Configuration") void testConstructor() { // Given & WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
private Configuration mockConfig; @Mock private Smb2SigningDigest mockDigest; private Smb2EchoResponse echoResponse; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); echoResponse = new Smb2EchoResponse(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.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
private Configuration mockConfig; @Mock private CIFSContext mockContext; private Smb2QueryDirectoryRequest request; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getMaximumBufferSize()).thenReturn(65536); when(mockConfig.getListSize()).thenReturn(65536); when(mockContext.getConfig()).thenReturn(mockConfig); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBSigningDigestTest.java
private CommonServerMessageBlock response; @Mock private CommonServerMessageBlock message; private byte[] testData; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); testData = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }; } @Test @DisplayName("Test sign method with valid parameters") void testSignWithValidParameters() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
private Configuration config; private SmbComRename smbComRename; @Mock private Configuration mockConfig; @BeforeEach public void setUp() throws CIFSException { MockitoAnnotations.openMocks(this); config = new PropertyConfiguration(new Properties()); } /** * Test constructor initialization with valid parameters */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
private Configuration mockConfig; @Mock private NetbiosName mockCalledName; @Mock private NetbiosName mockCallingName; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getNetbiosScope()).thenReturn(null); // Configure OEM encoding to avoid NullPointerException when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (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);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (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() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/service/impl/UrlFilterServiceImplTest.java
private UrlFilterServiceImpl service; @Mock private MemoryDataHelper dataHelper; @Override protected void setUp() throws Exception { super.setUp(); MockitoAnnotations.openMocks(this); } public void test_addIncludeUrlFilterSingle() { // Setup String sessionId = "session123"; String url = "https://example.com/.*"; // ExecuteRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 11.1K bytes - Viewed (0)