- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 2,364 for TEST (0.01 seconds)
-
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
protected ArtifactRepository badLocalRepository() throws Exception { String path = "target/test-repositories/" + component() + "/bad-local-repository"; File f = new File(getBasedir(), path); f.createNewFile(); return artifactRepositoryFactory.createArtifactRepository( "test", "file://" + f.getPath(), repoLayout, null, null); } protected String getRepositoryLayout() {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 10 09:40:15 GMT 2025 - 13.8K bytes - Click Count (0) -
maven-tests/src/test/java/com/squareup/okhttp3/maventest/AppTest.java
import mockwebserver3.MockResponse; import mockwebserver3.MockWebServer; import okhttp3.Headers; import org.junit.Test; import java.io.IOException; /** * Unit test for simple App. */ public class AppTest { private final MockWebServer mockWebServer = new MockWebServer(); @Test public void testApp() throws IOException { mockWebServer.enqueue(new MockResponse(200, Headers.of(), "Hello, Maven!"));Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jul 12 12:05:57 GMT 2025 - 1.1K bytes - Click Count (0) -
compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java
import org.apache.maven.building.ProblemCollector; import org.apache.maven.building.ProblemCollectorFactory; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class ToolchainsBuildingExceptionTest { private static final String LS = System.lineSeparator(); @Test void testNoProblems() { ToolchainsBuildingException e = new ToolchainsBuildingException(Collections.emptyList());Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 26 19:31:34 GMT 2025 - 3.1K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/feature/FeaturesTest.java
// Test with null properties assertTrue(Features.deployBuildPom(null)); } @Test void testDeployBuildPomWithStringTrue() { // Test with string "true" Map<String, Object> properties = Map.of(Constants.MAVEN_DEPLOY_BUILD_POM, "true"); assertTrue(Features.deployBuildPom(properties)); } @Test void testDeployBuildPomWithStringFalse() {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jul 04 19:42:23 GMT 2025 - 7.2K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
import okhttp3.containers.BasicMockServerTest.Companion.MOCKSERVER_IMAGE import okhttp3.containers.BasicMockServerTest.Companion.trustMockServer import okio.buffer import okio.source import org.junit.jupiter.api.Test import org.mockserver.client.MockServerClient import org.mockserver.configuration.Configuration import org.mockserver.logging.MockServerLogger import org.mockserver.model.HttpRequest.request
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6.2K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
* test what OkHttp does when both are reachable, or if only one is reachable. * * This test only runs on host machines that have both IPv4 and IPv6 addresses for localhost. */ @Timeout(30) class FastFallbackTest { @RegisterExtension val clientTestRule = OkHttpClientTestRule() // Don't use JUnit 5 test rules for these; otherwise we can't bind them to a single local IP.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.6K bytes - Click Count (0) -
mockwebserver/README.md
### Motivation This library makes it easy to test that your app Does The Right Thing when it makes HTTP and HTTPS calls. It lets you specify which responses to return and then verify that requests were made as expected. Because it exercises your full HTTP stack, you can be confident that you're testing everything. You can even copy & paste HTTP responses from your real web server to create representative test cases. Or test that your code survives in
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 8.1K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/MailingListTest.java
} @Test void testEqualsNullSafe() { assertFalse(new MailingList().equals(null)); new MailingList().equals(new MailingList()); } @Test void testEqualsIdentity() { MailingList thing = new MailingList(); assertTrue(thing.equals(thing), "Expected " + thing + " to equal " + thing); } @Test void testToStringNullSafe() {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 1.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt
* limitations under the License. */ package okhttp3.internal import assertk.assertThat import assertk.assertions.isEqualTo import kotlin.test.Test class HostnamesTest { @Test fun canonicalizeInetAddressNotMapped() { val addressA = decodeIpv6("::1")!! assertThat(canonicalizeInetAddress(addressA)).isEqualTo(addressA) val addressB = byteArrayOf(127, 0, 0, 1)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 5.1K bytes - Click Count (0) -
internal/crypto/header_test.go
_, got := IsRequested(test.Header) if Requested(test.Header) != got { // Test if result matches. t.Errorf("Requested mismatch, want %v, got %v", Requested(test.Header), got) } got = got && S3.IsRequested(test.Header) if got != test.Expected { t.Errorf("SSE-S3: Test %d: Wanted %v but got %v", i, test.Expected, got) } } for i, test := range ssecIsRequestedTests { _, got := IsRequested(test.Header)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Jul 13 14:52:15 GMT 2022 - 21.4K bytes - Click Count (0)