Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for AppException (0.42 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestListenerIntegrationTest.groovy

        abstract String getAssertionError()
    
        def "can listen for test results"() {
            given:
            file('src/main/java/AppException.java') << """
                public class AppException extends Exception { }
            """.stripIndent()
            file('src/test/java/SomeTest.java') << """
                ${testFrameworkImports}
    
                public class SomeTest {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4TestFrameworkIntegrationTest.groovy

                dependencies { testImplementation 'junit:junit:4.13' }
            """
        }
    
        @Override
        void createPassingFailingTest() {
            file('src/main/java/AppException.java').writelns(
                "public class AppException extends Exception { }"
            )
    
            file('src/test/java/SomeTest.java') << """
                public class SomeTest {
                    @org.junit.Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGIntegrationTest.groovy

            buildFile << """
                test {
                    ignoreFailures = true
                }
    
                ${testListener()}
            """.stripIndent()
            file('src/test/java/AppException.java') << 'public class AppException extends Exception {}'
            file('src/test/java/SomeTest.java') << '''
                public class SomeTest {
                    @org.testng.annotations.Test
                    public void pass() {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterTestFrameworkIntegrationTest.groovy

                test {
                    useJUnitPlatform()
                }
            """
        }
    
        @Override
        void createPassingFailingTest() {
            file('src/main/java/AppException.java').writelns(
                "public class AppException extends Exception { }"
            )
    
            file('src/test/java/SomeTest.java') << """
                public class SomeTest {
                    @org.junit.jupiter.api.Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestFailureProgressEventCrossVersionTest.groovy

                        test {
                            useTestNG('7.4.0')
                        }
                    }
                }
            """
    
            file('src/test/java/AppException.java') << 'public class AppException extends Exception {}'
            file('src/test/java/SomeTest.java') << '''
                import org.testng.annotations.Test;
                import static org.testng.Assert.assertEquals;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 22.1K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGTestFrameworkIntegrationTest.groovy

        def setup() {
            TestNGCoverage.enableTestNG(buildFile)
        }
    
        @Override
        void createPassingFailingTest() {
            file('src/test/java/AppException.java') << 'public class AppException extends Exception {}'
            file('src/test/java/SomeTest.java') << """
                public class SomeTest {
                    @org.testng.annotations.Test
                    public void ${failingTestCaseName}() {
    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