Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,857 for junit5 (0.05 sec)

  1. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerInstance.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package mockwebserver3.junit5.internal
    
    import okhttp3.ExperimentalOkHttpApi
    
    @ExperimentalOkHttpApi
    annotation class MockWebServerInstance(
      val name: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 764 bytes
    - Viewed (0)
  2. container-tests/build.gradle.kts

      testImplementation(libs.junit.jupiter.api)
      testImplementation(libs.junit.jupiter.params)
      testImplementation(libs.junit.jupiter.engine)
      testImplementation(libs.assertk)
      testImplementation(libs.testcontainers)
      testImplementation(libs.mockserver)
      testImplementation(libs.mockserver.client)
      testImplementation(libs.testcontainers.junit5)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 17 14:46:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. mockwebserver-junit5/src/test/java/mockwebserver3/junit5/internal/ExtensionMultipleInstancesTest.kt

     * limitations under the License.
     */
    package mockwebserver3.junit5.internal
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotEqualTo
    import assertk.assertions.isTrue
    import mockwebserver3.MockWebServer
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    
    class ExtensionMultipleInstancesTest {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. mockwebserver-junit5/README.md

    MockWebServer for JUnit 5
    =========================
    
    This module integrates mockwebserver3.MockWebServer with JUnit 5.
    
    To use, first add this library as a test dependency:
    
    ```
    testRuntimeOnly("com.squareup.okhttp3:mockwebserver3-junit5:4.12.0")
    ```
    
    Then in tests annotated `@org.junit.jupiter.api.Test`, you may add a [MockWebServer] as a test
    method parameter. It will be shut down automatically after the test runs.
    
    ```
    class MyTest {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. native-image-tests/src/main/kotlin/okhttp3/GenerateClassList.kt

     * limitations under the License.
     */
    package okhttp3
    
    import java.io.File
    import org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
    import org.junit.platform.engine.discovery.DiscoverySelectors
    
    // TODO move to junit5 tags
    val avoidedTests =
      setOf(
        "okhttp3.BouncyCastleTest",
        "okhttp3.ConscryptTest",
        "okhttp3.CorrettoTest",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. build.gradle.kts

      dependencies {
        // No dependency requirements for testing-support.
        if (project.name == "okhttp-testing-support") return@dependencies
    
        if (project.name == "mockwebserver3-junit5") {
          // JUnit 5's APIs need java.util.function.Function and java.util.Optional from API 24.
          signature(rootProject.libs.signature.android.apilevel24) { artifact { type = "signature" } }
        } else {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jun 23 17:02:02 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt

    import org.junit.jupiter.api.extension.BeforeEachCallback
    import org.junit.jupiter.api.extension.ExtensionContext
    import org.junit.jupiter.api.extension.ParameterContext
    import org.junit.jupiter.api.extension.ParameterResolver
    
    /**
     * Runs MockWebServer for the duration of a single test method.
     *
     * Specifically while junit instances passes into test constructor
     * are typically shares amongst all tests, a fresh instance will be
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 11 12:12:36 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. native-image-tests/src/main/kotlin/okhttp3/RunTests.kt

    import kotlin.system.exitProcess
    import org.junit.jupiter.engine.JupiterTestEngine
    import org.junit.platform.console.options.Theme
    import org.junit.platform.engine.DiscoverySelector
    import org.junit.platform.engine.TestDescriptor
    import org.junit.platform.engine.TestEngine
    import org.junit.platform.engine.discovery.DiscoverySelectors.selectClass
    import org.junit.platform.launcher.Launcher
    import org.junit.platform.launcher.LauncherDiscoveryRequest
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt

        val julToSlf4j = "org.slf4j:jul-to-slf4j"
        val junit = "junit:junit"
        val junit5JupiterApi = "org.junit.jupiter:junit-jupiter-api"
        val junit5Vintage = "org.junit.vintage:junit-vintage-engine"
        val junitPlatform = "org.junit.platform:junit-platform-launcher"
        val junitPlatformEngine = "org.junit.platform:junit-platform-engine"
        val jzlib = "com.jcraft:jzlib"
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 29 08:06:17 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

    import mockwebserver3.junit5.internal.MockWebServerInstance
    import okhttp3.internal.http.RecordingProxySelector
    import okhttp3.internal.http2.ErrorCode
    import okhttp3.testing.PlatformRule
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    import org.junit.jupiter.params.ParameterizedTest
    import org.junit.jupiter.params.provider.ValueSource
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top