Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 139 for TESTNG (0.12 sec)

  1. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/testng/TestNGClassListener.java

     * limitations under the License.
     */
    
    package org.gradle.api.internal.tasks.testing.testng;
    
    import org.testng.IMethodInstance;
    import org.testng.ITestClass;
    
    /**
     * Listener that reacts if a test class is started and finished.
     * This listener is invoked if the executing TestNG version is >= 6.9.10 which introduces the {@code org.testng.IClassListener}.
     *
     * @see TestNGListenerAdapterFactory
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGGroupByInstancesIntegrationTest.groovy

                }
            """
    
            file("src/test/java/TestFactory.java") << """
                import org.testng.annotations.AfterClass;
                import org.testng.annotations.BeforeClass;
                import org.testng.annotations.DataProvider;
                import org.testng.annotations.Factory;
                import org.testng.annotations.Test;
    
                public class TestFactory {
    
                    @DataProvider(name = "data")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGSuiteIntegrationTest.groovy

                    @org.testng.annotations.Test public void pass() {}
                }
            """
    
            file("suite.xml") << """<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
    <suite name="AwesomeSuite" parallel="tests">
      <test name="AwesomeTest" preserve-order="false">
        <classes>
          <class name="FooTest"/>
          <class name="BarTest"/>
        </classes>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testing/testng-preserveorder/kotlin/src/test/java/org/gradle/testng/Test2.java

    package org.gradle.testng;
    
    import java.io.Serializable;
    
    import org.testng.annotations.AfterClass;
    import org.testng.annotations.BeforeClass;
    import org.testng.annotations.Test;
    
    public class Test2 {
    
        public static class C implements Serializable {
            private static final long serialVersionUID = 1L;
        }
    
        @BeforeClass
        public void beforeClass() {
            System.out.println("Test2.beforeClass()");
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 736 bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGParallelBySuitesNotSupportedIntegrationTest.groovy

     */
    
    package org.gradle.testing.testng
    
    import org.gradle.integtests.fixtures.AbstractIntegrationSpec
    import org.gradle.integtests.fixtures.DefaultTestExecutionResult
    
    import static org.hamcrest.CoreMatchers.containsString
    
    class TestNGParallelBySuitesNotSupportedIntegrationTest extends AbstractIntegrationSpec {
    
        def "run tests using TestNG version not supporting suiteThreadPoolSize changing"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 22:42:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/testing/testng-suitexmlbuilder/groovy/build.gradle

    dependencies {
        testImplementation 'org.testng:testng:6.3.1'
    }
    
    test {
    	useTestNG() {
            suiteXmlBuilder().suite(name: 'testing-testng') {
                test (name : 'testing-testng', annotations : 'JDK', verbose:'1') {
                    classes([:]) {
                        'class' (name: 'org.gradle.testng.UserImplTest') {
                            methods([:]) {
                                include(name: 'testOkFirstName')
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 590 bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGClassIntegrationTest.groovy

                }
            """
    
            file("src/test/java/org/company/SystemOutTest.java") << """
                package org.company;
    
                import org.testng.Assert;
                import org.testng.annotations.Test;
    
                public class SystemOutTest {
                    @Test
                    public void testOut() {
                        System.out.println("System.out rules!");
                        Assert.assertTrue(true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/testing/testng-preserveorder/groovy/src/test/java/org/gradle/testng/Test1.java

    package org.gradle.testng;
    
    import org.testng.annotations.AfterClass;
    import org.testng.annotations.BeforeClass;
    import org.testng.annotations.Test;
    
    public class Test1 {
    
        @BeforeClass
        public void beforeClass() {
            System.out.println("Test1.beforeClass()");
        }
    
        @Test
        public void test1() {
            System.out.println("Test1.test1()");
        }
    
        @Test(dependsOnMethods = {"test1"})
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 590 bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGTestOutputListenerTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.testing.testng
    
    class TestNGTestOutputListenerTest extends AbstractTestNGVersionIntegrationTest {
        def "shows standard stream also for testNG"() {
            given:
            def test = file("src/test/java/SomeTest.java")
            test << """
                import org.testng.*;
                import org.testng.annotations.*;
    
                public class SomeTest {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGTestFrameworkIntegrationTest.groovy

            file('src/test/java/SomeTest.java') << """
                public class SomeTest {
                    @org.testng.annotations.Test
                    public void ${failingTestCaseName}() {
                        System.err.println("some error output");
                        assert false : "test failure message";
                    }
                    @org.testng.annotations.Test
                    public void ${passingTestCaseName}() {}
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top