Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ATestClassWhichCannotBeLoaded (0.19 sec)

  1. platforms/jvm/testing-jvm-infrastructure/src/testFixtures/groovy/org/gradle/api/internal/tasks/testing/junit/JUnitTestClassProcessorData.groovy

            notifier.fireTestStarted(Description.createTestDescription(type, "broken"))
            throw failure.rawFailure
        }
    }
    
    public class ATestClassWhichCannotBeLoaded {
        static {
            throw new NoClassDefFoundError()
        }
    
        @Test public void pass() {}
    }
    
    public class ATestClassWithSeveralMethods {
        @Test public void pass() {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/JUnitTestClassProcessorTest.groovy

            0 * processor._
        }
    
        def "executes a test class which cannot be loaded"() {
            setup:
            String testClassName = 'org.gradle.api.internal.tasks.testing.junit.ATestClassWhichCannotBeLoaded'
    
            when:
            process([testClassName])
    
            then:
            1 * processor.started({ it.id == 1 }, { it.parentId == null })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 24.8K bytes
    - Viewed (0)
Back to top