- Sort Score
- Result 10 results
- Languages All
Results 431 - 440 of 784 for mock (0.02 sec)
-
src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import jcifs.dcerpc.ndr.NdrBuffer;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
*/ public class Smb2NegotiateResponseInputValidationTest { private Configuration mockConfig; private Smb2NegotiateResponse response; @BeforeEach public void setUp() { mockConfig = Mockito.mock(Configuration.class); response = new Smb2NegotiateResponse(mockConfig); } /** * Test that malformed structure size is properly rejected. */ @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (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 benchmarkingRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 10.7K bytes - Viewed (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); } public void test_execute_withHighBoost() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/PrunedTagTest.java
assertTrue(tag.toString().contains("css=new-class")); assertTrue(tag.toString().contains("attrName=role")); assertTrue(tag.toString().contains("attrValue=link")); } // Mock implementation of Node for testing without external dependencies private static class MockNode implements Node { private final String nodeName; private final Map<String, MockNode> attributes = new HashMap<>();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
String path = "\\\\server"; int maxReferralLevel = 3; buffer = new DfsReferralRequestBuffer(path, maxReferralLevel); // Configure mock to do nothing when called mockedSMBUtil.when(() -> SMBUtil.writeInt2(anyLong(), any(byte[].class), anyInt())).thenAnswer(invocation -> null); byte[] dst = new byte[buffer.size()];Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/PluginHelperTest.java
} public void test_installArtifact_default() { PluginHelper testHelper = new PluginHelper() { @Override protected void install(Artifact artifact) { // Mock install method } }; Artifact artifact = new Artifact("fess-ds-test", "1.0.0", "http://test.com/test.jar"); try { testHelper.installArtifact(artifact);Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java
} } }; systemHelper.init(); ComponentUtil.register(systemHelper, "systemHelper"); // Initialize DictionaryManager mock org.codelibs.fess.dict.DictionaryManager dictionaryManager = new org.codelibs.fess.dict.DictionaryManager() { @OverrideRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/SystemHelperTest.java
try { return new org.lastaflute.web.ruts.process.ActionRuntime("test", null, null) { @Override public void registerData(String key, Object value) { // Mock implementation } }; } catch (Exception e) { // If ActionRuntime constructor fails, return null and handle in test methods return null; } }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 28.9K bytes - Viewed (0) -
tests/sql_builder_test.go
// replace SQL quote, convert into postgresql like "" expected = replaceQuoteInSQL(expected) actually = replaceQuoteInSQL(actually) // ignore updated_at value, because it's generated in Gorm internal, can't to mock value on update. updatedAtRe := regexp.MustCompile(`(?i)"updated_at"=".+?"`) actually = updatedAtRe.ReplaceAllString(actually, `"updated_at"=?`) expected = updatedAtRe.ReplaceAllString(expected, `"updated_at"=?`)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 16.7K bytes - Viewed (0)