Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,590 for myHost (0.25 sec)

  1. mockwebserver-junit5/README.md

    method parameter. It will be shut down automatically after the test runs.
    
    ```
    class MyTest {
      @Test
      void test(MockWebServer server) {
        ...
      }
    }
    ```
    
    Alternately you may add the [MockWebServer] as a constructor parameter:
    
    ```
    class MyTest {
      private final MockWebServer server;
    
      MyTest(MockWebServer server) {
        this.server = server;
      }
    
      @Test
      void test() {
        ...
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r82/TestLauncherTestSpecCrossVersionSpec.groovy

                }
            }
    
            then:
            // 1 test class + 2 test method events
            stdout.toString().contains("Reusing configuration cache.")
            events.testClassesAndMethods.size() == 3
            assertTestExecuted(className: 'example.MyTest', methodName: 'foo', task: ':secondTest')
            assertTestExecuted(className: 'example.MyTest', methodName: 'foo2', task: ':secondTest')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r61/TestLauncherCrossVersionSpec.groovy

            assertTestNotExecuted(className: "example.MyTest")
        }
    
        def "can target specific test task and methods"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withTaskAndTestMethods(':secondTest', "example.MyTest", ["foo2"])
            }
            then:
            assertTaskNotExecuted(":test")
            assertTaskExecuted(":secondTest")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/TestLauncherDebugTestsCrossVersionTest.groovy

                ${mavenCentralRepository()}
                dependencies { ${testImplementationConfiguration} 'junit:junit:4.13' }
            """
            file('src/test/java/example/MyTest.java').text = """
                package example;
                public class MyTest {
                    @org.junit.Test public void foo() throws Exception {
                         org.junit.Assert.assertEquals(1, 1);
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterTestTaskIntegrationTest.groovy

        @Override
        String getStandaloneTestClass() {
            return testClass('MyTest')
        }
    
        @Override
        String testClass(String className) {
            return """
                import org.junit.jupiter.api.*;
    
                public class $className {
                   @Test
                   @Tag("MyTest\$Fast")
                   public void fastTest() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/types/KtType.kt

         *
         * ```
         * typealias MyString = String
         * typealias MyList<A> = List<A>
         *
         * val list: MyList<MyString> = listOf()
         * ```
         *
         * `MyList<MyString>` may be expanded to a type `List<String>` with an abbreviated type `MyList<String>`, where `String` also has the
         * abbreviated type `MyString`. The abbreviated type is not `MyList<MyString>`, although it might be rendered as such.
         *
         *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatterTest.groovy

            exception.stackTrace = stacktrace
    
            expect:
            formatter.format(testDescriptor, [exception]) == '''\
        java.lang.Exception: ouch
            at org.ClassName1.methodName1(FileName1.java:11)
            at org.ClassName2.methodName2(FileName2.java:22)
            at ClassName$1$1.whatever(MyTest.java:22)
    '''
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsVisibilityIntegrationTest.groovy

        def "cannot compile against classes that are not part of Gradle's public API"() {
            when:
            buildFile << testablePluginProject()
    
            file('src/test/groovy/MyTest.groovy') << """
                class MyTest extends groovy.test.GroovyTestCase {
    
                    void testImplIsHidden() {
                        try {
                            getClass().classLoader.loadClass("$Maps.name")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestLauncherTaskExecutionCrossVersionSpec.groovy

                ${mavenCentralRepository()}
    
                dependencies {
                    testImplementation 'junit:junit:4.13'
                }
            """
            file('src/test/java/MyTest.java') << '''
                public class MyTest {
    
                    @org.junit.Test
                    public void pass() {
                    }
    
                    // if the test task is executed without a filter then the build fails
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4TestTaskIntegrationTest.groovy

        def "options can be set prior to setting same test framework for the default test task"() {
            given:
            file('src/test/java/MyTest.java') << standaloneTestClass
            file("src/test/java/Slow.java") << """public interface Slow {}"""
    
            settingsFile << "rootProject.name = 'Sample'"
            buildFile << """apply plugin: 'java'
                test {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top