- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 784 for mock (0.02 sec)
-
src/test/java/jcifs/util/StringsTest.java
import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java
assertNotNull(result); } catch (Exception e) { assertTrue(true); // Expected exception } } public void test_getJarFile_exists() throws IOException { // Create a mock jar file Path jarPath = tempDir.resolve("test-theme.jar"); Files.createFile(jarPath); ThemeHelper mockThemeHelper = new ThemeHelper() { @Override
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
if (throwOnCloseInternal) throw new CIFSException("closeInternal fail"); } } @Mock SmbTreeHandleImpl tree; @Mock SmbResource parent; @Mock ResourceNameFilter nameFilter; private void stubAcquireReturnsSelf() { when(tree.acquire()).thenReturn(tree); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
} @Test void messageAndCauseConstructor_setsMessageAndCause_withoutInteractingWithCause() { // Arrange - mock cause to verify no interactions are needed to construct Throwable cause = Mockito.mock(Throwable.class); String message = "forced downgrade detected"; // Act SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(message, cause);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/resources/fess_env_suggest.properties
# ---------------------------------------------------------- # Mail # ------ # Does it send mock mail? (true: no send actually, logging only) mail.send.mock = false # SMTP server settings for main: host:port mail.smtp.server.main.host.and.port = localhost:25 # The prefix of subject to show test environment or not mail.subject.test.prefix =
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Mon Jan 29 07:34:32 UTC 2018 - 2.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java
// Reduce default interval to minimize test execution time dataIndexHelper.setCrawlingExecutionInterval(1L); // 1ms instead of 5000ms } private void setupMockComponents() { // Lightweight mock CrawlingConfigHelper ComponentUtil.register(new CrawlingConfigHelper() { @Override public List<DataConfig> getAllDataConfigList() {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
// Helper: build a minimally wired instance with mocks; avoids real I/O private SmbRandomAccessFile newInstance(String mode, boolean smb2, boolean ntSmbsCap, boolean unshared) throws CIFSException { SmbFile file = mock(SmbFile.class); SmbTreeHandleImpl tree = mock(SmbTreeHandleImpl.class); Configuration cfg = mock(Configuration.class); SmbFileHandleImpl fh = mock(SmbFileHandleImpl.class);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.Configuration; @ExtendWith(MockitoExtension.class) class NodeStatusRequestTest { @Mock private Configuration mockConfig; @Mock private Name mockName; private NodeStatusRequest nodeStatusRequest; @BeforeEachRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
Field resultsField = Smb2QueryDirectoryResponse.class.getDeclaredField("results"); resultsField.setAccessible(true); FileEntry[] entries = new FileEntry[] { mock(FileBothDirectoryInfo.class), mock(FileBothDirectoryInfo.class) }; resultsField.set(response, entries); FileEntry[] results = response.getResults(); assertNotNull(results); assertEquals(2, results.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/main/resources/fess_env_web.properties
# ---------------------------------------------------------- # Mail # ------ # Does it send mock mail? (true: no send actually, logging only) mail.send.mock = false # SMTP server settings for main: host:port mail.smtp.server.main.host.and.port = localhost:25 # The prefix of subject to show test environment or not mail.subject.test.prefix =
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Mon Jan 29 07:34:32 UTC 2018 - 2.2K bytes - Viewed (0)