Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testFactory (0.65 sec)

  1. platforms/documentation/docs/src/snippets/testing/testng-groupbyinstances/kotlin/src/test/java/org/gradle/testng/TestFactory.java

            System.out.println("TestFactory[" + data + "].beforeClass()");
        }
    
        @Test
        public void test1() {
            System.out.println("TestFactory[" + data + "].test1()");
        }
    
        @Test(dependsOnMethods = {"test1"})
        public void test2() {
            System.out.println("TestFactory[" + data + "].test2()");
        }
    
        @AfterClass
        public void afterClass() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testing/testng-groupbyinstances/groovy/src/test/java/org/gradle/testng/TestFactory.java

            System.out.println("TestFactory[" + data + "].beforeClass()");
        }
    
        @Test
        public void test1() {
            System.out.println("TestFactory[" + data + "].test1()");
        }
    
        @Test(dependsOnMethods = {"test1"})
        public void test2() {
            System.out.println("TestFactory[" + data + "].test2()");
        }
    
        @AfterClass
        public void afterClass() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGGroupByInstancesIntegrationTest.groovy

            when: succeeds "test"
    
            then:
            outputContains("""
    TestFactory[data1].beforeClass()
    TestFactory[data1].test1()
    TestFactory[data1].test2()
    TestFactory[data1].afterClass()
    """)
            outputContains("""
    TestFactory[data2].beforeClass()
    TestFactory[data2].test1()
    TestFactory[data2].test2()
    TestFactory[data2].afterClass()
    """)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r70/TestDisplayNameJUnit5CrossVersionSpec.groovy

                                testDisplayName "DynamicTests"
                                testMethodSuite("testFactory()") {
                                    operationDisplayName "testFactory()"
                                    testDisplayName "testFactory()"
                                    testMethodSuite("testFactory()[1]") {
                                        operationDisplayName "some container"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformLoggingIntegrationTest.groovy

                import org.junit.jupiter.api.TestFactory;
                import java.util.stream.IntStream;
                import java.util.stream.Stream;
                import static org.junit.jupiter.api.Assertions.*;
                import static org.junit.jupiter.api.DynamicTest.dynamicTest;
                public class JUnitJupiterDynamicTest {
                    @TestFactory
                    Stream<DynamicTest> streamOfTests() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. pkg/util/hash/hash_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package hash
    
    import (
    	"testing"
    )
    
    func TestFactory(t *testing.T) {
    	testCases := []struct {
    		name                   string
    		str                    string
    		wantSum                []byte
    		wantStr                string
    		wantUint64             uint64
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryTest.groovy

        }
    
        def canGetServiceAsFactoryWhenTheServiceImplementsFactoryInterface() {
            expect:
            registry.getFactory(BigDecimal) instanceof TestFactory
            registry.getFactory(Number) instanceof TestFactory
            registry.getFactory(BigDecimal).is(registry.getFactory(BigDecimal))
            registry.getFactory(Number).is(registry.getFactory(BigDecimal))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:25 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformUserGuideIntegrationTest.groovy

    package org.gradle;
    
    import org.junit.jupiter.api.*;
    import java.util.*;
    import static org.junit.jupiter.api.Assertions.*;
    
    interface TestInterfaceDynamicTestsDemo {
        @TestFactory
        default Collection<DynamicTest> dynamicTestsFromCollection() {
            return Arrays.asList(
                DynamicTest.dynamicTest("1st dynamic test in test interface", () -> assertTrue(true)),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  9. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/java/SamplesJavaTestingIntegrationTest.groovy

            then: "the test task is executed"
            result.assertTaskExecuted(":test")
    
            and: "both tests are run"
            def xmlResults = getTestResultsFileAsXml(dslDir, "org.gradle.testng.TestFactory")
            assertTestsRunCount(xmlResults, 4)
            xmlResults.testcase.@name*.text() == ["test1", "test2", "test1", "test2"]
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  10. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/WrapperPlugin.java

                TextResourceFactory textFactory = project.getResources().getText();
                TextResource latest = textFactory.fromUri(versionUrl + "/current");
                TextResource releaseCandidate = textFactory.fromUri(versionUrl + "/" + RELEASE_CANDIDATE);
                TextResource nightly = textFactory.fromUri(versionUrl + "/" + NIGHTLY);
                TextResource releaseNightly = textFactory.fromUri(versionUrl + "/" + RELEASE_NIGHTLY);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 14 22:46:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top