Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for mytext3 (0.8 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/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheToolingApiInvocationIntegrationTest.groovy

                println("script log statement")
            """
            file("src/test/java/my/MyTest.java") << """
                package my;
                import org.junit.Test;
                public class MyTest {
                    @Test public void test() {}
                }
            """
    
            when:
            runTestClasses("my.MyTest")
    
            then:
            outputContains("script log statement")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. 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)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCrossVersionSpec.groovy

            when:
            launchTests(testDescriptors("example.MyTest"));
            then:
            assertTaskExecuted(":test")
            assertTaskExecuted(":secondTest")
    
            assertTestExecuted(className: "example.MyTest", methodName: "foo", task: ":test")
            assertTestExecuted(className: "example.MyTest", methodName: "foo", task: ":secondTest")
            assertTestExecuted(className: "example.MyTest", methodName: "foo2", task: ":test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsConcurrencyIntegrationTest.groovy

            given:
            setupProjects(CONCURRENT_BUILDS_PROJECT_COUNT) { projectDirName, buildFile ->
                buildFile << testablePluginProject()
                file("$projectDirName/src/test/groovy/MyTest.groovy") << gradleApiAndTestKitClassLoadingTestClass()
            }
    
            expect:
            concurrentBuildSucceed(CONCURRENT_BUILDS_PROJECT_COUNT, 'test')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformLauncherSessionListenerIntegrationTest.groovy

                    testLogging.showStandardStreams = true
                }
            """
            file("src/test/java/com/example/MyTest.java") << """
                package com.example;
    
                public class MyTest {
                    @org.junit.jupiter.api.Test
                    public void myTest() { }
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.1K 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/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestTaskIntegrationTest.groovy

            given:
            buildFile << java9Build()
    
            file('src/test/java/MyTest.java') << standaloneTestClass
    
            when:
            succeeds 'test'
    
            then:
            noExceptionThrown()
    
            and:
            classFormat(classFile('java', 'test', 'MyTest.class')) == 53
    
        }
    
        @Requires(UnitTestPreconditions.Jdk9OrLater)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go

    			DoRaw(context.TODO())
    		if err != nil {
    			t.Fatal(err)
    		}
    		obj, err := decodeYAML(result)
    		if err != nil {
    			t.Fatal(err, string(result))
    		}
    		if obj.GetName() != "mytest" {
    			t.Fatalf("expected mytest, got %s", obj.GetName())
    		}
    		if obj.GetAPIVersion() != apiVersion {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 19:34:41 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitClassDetectionIntegrationTest.groovy

        def 'does not try to execute non-test class as test class'() {
            given:
            file('src/test/java/com/example/MyTest.java') << """
                package com.example;
    
                ${testFrameworkImports}
    
                public class MyTest {
                    @Test public void someTest() {
                        assertTrue(true);
                    }
                }
            """.stripIndent()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top