Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for JUnitRunner (0.38 sec)

  1. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalalibrary/LibrarySuite.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import org.scalatest.funsuite.AnyFunSuite
    import org.junit.runner.RunWith
    import org.scalatestplus.junit.JUnitRunner
    
    @RunWith(classOf[JUnitRunner])
    class LibrarySuite extends AnyFunSuite {
      test("someLibraryMethod is always true") {
        def library = new Library()
        assert(library.someLibraryMethod())
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 369 bytes
    - Viewed (0)
  2. testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/play-example/test/ApplicationSpec.scala

    import org.apache.commons.lang.StringUtils
    import org.junit.runner.RunWith
    import org.scalatest.junit.JUnitRunner
    import org.scalatestplus.play.PlaySpec
    import org.scalatestplus.play.guice.GuiceOneAppPerSuite
    import play.api.http.Status
    import play.api.test.FakeRequest
    import play.api.test.Helpers._
    
    @RunWith(classOf[JUnitRunner])
    class ApplicationSpec extends PlaySpec with GuiceOneAppPerSuite {
    
      "Application" should {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/play-example/test/IntegrationSpec.scala

    import org.junit.runner.RunWith
    import org.scalatest.junit.JUnitRunner
    import org.scalatestplus.play._
    import org.scalatestplus.play.guice.GuiceOneServerPerTest
    
    @RunWith(classOf[JUnitRunner])
    class IntegrationSpec extends PlaySpec
      with OneBrowserPerTest
      with GuiceOneServerPerTest
      with HtmlUnitFactory
      with ServerProvider {
    
      "Application" should {
    
        "work from within a browser" in {
    
          go to ("http://localhost:" + port)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 518 bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractSpecs2IntegrationTest.groovy

                }
            """
            file('src/test/scala/BasicSpec.scala') << '''
                import org.junit.runner.RunWith
                import org.specs2.runner.JUnitRunner
                import org.specs2.mutable.Specification
    
                @RunWith(classOf[JUnitRunner])
                class BasicSpec extends Specification {
                  "Basic Math" >> {
                    (1 + 1) mustEqual 2
                  }
                }
            '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/AppSuite.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import org.scalatest.funsuite.AnyFunSuite
    import org.junit.runner.RunWith
    import org.scalatestplus.junit.JUnitRunner
    
    @RunWith(classOf[JUnitRunner])
    class AppSuite extends AnyFunSuite {
      test("App has a greeting") {
        assert(App.greeting() != null)
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 314 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/scala/scala3/groovy/src/test/scala/org/gradle/sample/PersonSpec.scala

    package org.gradle.sample
    
    import org.junit.runner.RunWith
    import org.scalatest.FunSpec
    import org.scalatest.junit.JUnitRunner
    
    @RunWith(classOf[JUnitRunner])
    class PersonSpec extends FunSpec:
      describe("create a person") {
        it("should succeed for scala") {
          val person: Named = new Person(List("bob smith"))
          person
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 342 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/scala/scala3/kotlin/src/test/scala/org/gradle/sample/PersonSpec.scala

    package org.gradle.sample
    
    import org.junit.runner.RunWith
    import org.scalatest.FunSpec
    import org.scalatest.junit.JUnitRunner
    
    @RunWith(classOf[JUnitRunner])
    class PersonSpec extends FunSpec:
      describe("create a person") {
        it("should succeed for scala") {
          val person: Named = new Person(List("bob smith"))
          person
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 341 bytes
    - Viewed (0)
  8. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/ScalaConcurrencyIntegrationTest.groovy

                    package ${project}
                    import org.scalatest.funsuite.AnyFunSuite
                    import org.junit.runner.RunWith
                    import org.scalatestplus.junit.JUnitRunner
    
                    @RunWith(classOf[JUnitRunner])
                    class ${project.toUpperCase()}Test extends AnyFunSuite {
                      test("always true") {
                          assert(true)
                      }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 16:10:12 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/test/ScalaTestIntegrationTest.groovy

            when:
            file("src/test/scala/MultiLineNameTest.scala") << """
    package org.gradle
    
    import org.scalatest.FunSuite
    import org.junit.runner.RunWith
    import org.scalatest.junit.JUnitRunner
    
    @RunWith(classOf[JUnitRunner])
    class MultiLineSuite extends FunSuite {
        test("This test method name\\nspans many\\nlines") {
            assert(1 === 1)
        }
    }
            """
    
            then:
            succeeds("test")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/AllExceptIgnoredTestRunnerBuilder.java

                try {
                    return new BlockJUnit4ClassRunner(testClass);
                } catch (Throwable t) {
                    //failed to instantiate BlockJUnitRunner. try deprecated JUnitRunner (for JUnit < 4.5)
                    try {
                        Class<Runner> runnerClass = Cast.uncheckedNonnullCast(Thread.currentThread().getContextClassLoader().loadClass("org.junit.internal.runners.JUnit4ClassRunner"));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top