- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 435 for mockito (0.09 seconds)
-
build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/InternalYamlRestTestPluginFuncTest.groovy
} """ String api = "foo.json" setupRestResources([api]) addRestTestsToProject(["10_basic.yml"], "yamlRestTest") file("src/yamlRestTest/java/MockIT.java") << "import org.junit.Test;class MockIT { @Test public void doNothing() { }}" when: def result = gradleRunner("yamlRestTest", "printYamlRestTestClasspath").build() then:Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Fri Sep 03 10:22:28 GMT 2021 - 3.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
// We buffer some outbound data and headers and confirm that the END_STREAM flag comes with the // headers (and not with the data). // Write the mocking script. for the client peer.setClient(true) // Write the mocking script. peer.sendFrame().settings(Settings()) peer.sendFrame().headers(true, 3, headerEntries("client", "abc")) peer.acceptFrame() // ACKCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 75.5K bytes - Click Count (0) -
build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/YamlRestCompatTestPluginFuncTest.groovy
addRestTestsToProject([additionalTest], "yamlRestCompatTest") //intentionally adding to yamlRestTest source set since the .classes are copied from there file("src/yamlRestTest/java/MockIT.java") << "import org.junit.Test;class MockIT { @Test public void doNothing() { }}" String api = "foo.json" String test = "10_basic.yml"
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Sep 30 16:30:48 GMT 2021 - 16.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRootTest.java
WebResourceRoot.class.isAssignableFrom(FessWebResourceRoot.class)); } @Test public void test_classStructure() { // Basic class structure tests that don't require complex mocking assertEquals("FessWebResourceRoot should be in correct package", "org.codelibs.fess.tomcat.webresources.FessWebResourceRoot", FessWebResourceRoot.class.getName());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 4.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CrawlerLogHelperTest.java
} @Test public void test_log_method_exists() { // Test that the log method exists and can be called // We can't easily test the actual functionality without complex mocking // but we can verify the class structure assertNotNull(crawlerLogHelper); assertTrue(CrawlerLogHelper.class.getSuperclass().getSimpleName().contains("LogHelper")); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 1.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java
import org.lastaflute.web.validation.ActionValidator; public class FessActionValidatorTest extends UnitFessTestCase { @Test public void test_constructor() { // Test basic class structure without complex mocking assertEquals("FessActionValidator should be in correct package", "org.codelibs.fess.validation.FessActionValidator", FessActionValidator.class.getName()); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
* more bytes. * * <p>Note: Direct testing of the {@link IOException} scenario during write/flush is challenging * without mocking. This test verifies that normal operation with threshold crossing still works * correctly with the fix in place. */ public void testThresholdCrossing_resourceManagement() throws Exception {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:04:26 GMT 2026 - 8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
byte[] buffer = new byte[4]; long time = System.currentTimeMillis(); // UTime is seconds since epoch, so divide by 1000 long unixTime = time / 1000L; // Mocking date for timezone consistency TimeZone original = TimeZone.getDefault(); try { TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CurlHelperTest.java
curlHelper.init(); CurlRequest request = curlHelper.get("/test"); assertNotNull(request); // The request should be properly created - we can't easily verify headers without mocking framework } @Test public void test_post() { setupMockConfig("localhost:9200", "", ""); curlHelper.init(); CurlRequest request = curlHelper.post("/test");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 10.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java
private Class<?> lastCredentialType; private Function<?, ?> lastFunction; public TestLoginCredentialResolver() { super(null); // Pass null since we're mocking } @Override public <CREDENTIAL extends LoginCredential> void resolve(final Class<CREDENTIAL> credentialType, final Function<CREDENTIAL, OptionalEntity<FessUser>> oneArgLambda) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.2K bytes - Click Count (1)