- Sort Score
- Num 10 results
- Language All
Results 451 - 460 of 955 for Mock (0.02 seconds)
-
guava/src/com/google/common/base/Stopwatch.java
* that is already in the desired state. * * <p>When testing code that uses this class, use {@link #createUnstarted(Ticker)} or {@link * #createStarted(Ticker)} to supply a fake or mock ticker. This allows you to simulate any valid * behavior of the stopwatch. * * <p><b>Note:</b> This class is not thread-safe. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ldap/LdapUserTest.java
testEnv.put("test.key", "test.value"); ldapUser = new LdapUser(testEnv, "testuser"); ComponentUtil.register(new SystemHelper(), "systemHelper"); // Register a mock LdapManager to avoid NPE ComponentUtil.register(new LdapManager() { // Override methods that are called in tests }, "ldapManager"); } @Override
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import java.lang.reflect.Field; import java.util.Arrays; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 22.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java
// This tests the full flow: addCondition -> isTarget -> conditionMap -> matches generator = new TestThumbnailGenerator(); // Setup mock FessConfig FessConfig mockConfig = new FessConfig.SimpleImpl() { @Override public String getIndexFieldThumbnail() { return "thumbnail"; } };Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Feb 04 14:24:39 GMT 2026 - 17.1K bytes - Click Count (0) -
docs/SMB3_IMPLEMENTATION_PLAN.md
C --> D[Multi-Channel] D --> E[RDMA Support] C --> F[Witness Protocol] D --> F ``` ## Testing Strategy ### Unit Tests - Individual component testing for each feature - Mock-based testing for protocol interactions - State machine validation ### Integration Tests - Feature interaction testing - Network failure simulation - Performance benchmarkingCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 10.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessTimeResourceProviderTest.java
private FessConfig mockConfig; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); // Create FessConfig mock mockConfig = new FessConfig.SimpleImpl() { private static final long serialVersionUID = 1L; @Override public String getTimeAdjustTimeMillis() { return "0";Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 17.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
} } }; systemHelper.init(); ComponentUtil.register(systemHelper, "systemHelper"); // Initialize DictionaryManager mock dictionaryManager = new DictionaryManager() { @Override public CurlResponse getContentResponse(DictionaryFile<?> file) { try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImplTest.java
* This test verifies the ArrayList implementation works correctly when * all access is properly synchronized via indexUpdateCallback lock. */ @Test public void test_deleteUrlList_synchronizedAccess() throws Exception { // Create a mock IndexUpdateCallback for synchronization IndexUpdateCallback mockCallback = new IndexUpdateCallback() { @OverrideCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 19.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/MatchAllQueryCommandTest.java
QueryBuilder result = matchAllQueryCommand.execute(context, query, boost); assertNotNull(result); // Note: Actual log output verification would require a log appender mock // but we can at least ensure the method executes without errors logger.info("Execute method called with query: {} and boost: {}", query, boost); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 17K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
import static com.google.common.truth.Truth.assertThat; import static java.util.Arrays.asList; import static org.junit.Assert.assertThrows; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import com.google.common.collect.Multiset.Entry; import com.google.common.collect.testing.ListTestSuiteBuilder; import com.google.common.collect.testing.MinimalCollection;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.8K bytes - Click Count (0)