Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TestAssertionFailure (0.29 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/TestAssertionFailure.java

    import javax.annotation.Nullable;
    
    /**
     * Represent a test assertion failure where the test fails due to a broken assertion.
     *
     * @since 7.6
     */
    @Incubating
    public interface TestAssertionFailure extends TestFailure {
    
        /**
         * Returns the string representation of the expected value.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r85/TestFailureProgressEventCrossVersionTest.groovy

            collector.failures[0] instanceof TestAssertionFailure
            def failure = collector.failures[0] as TestAssertionFailure
            failure.message == "This exception wraps an assertion error"
    
            // Extract and assert the wrapped failure
            failure.causes.size() == 1
            failure.causes[0] instanceof TestAssertionFailure
            def cause = failure.causes[0] as TestAssertionFailure
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 10 17:52:51 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestFailureProgressEventCrossVersionTest.groovy

                }
            """
    
            when:
            runTestTaskWithFailureCollection()
    
            then:
            thrown(BuildException)
            List<TestAssertionFailure> assertionFailures = failures.findAll { println it.stacktrace; it instanceof TestAssertionFailure }
            List<TestFrameworkFailure> frameworkFailures = failures.findAll { it instanceof TestFrameworkFailure }
    
            assertionFailures.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 22.1K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultTestAssertionFailure.java

     * limitations under the License.
     */
    
    package org.gradle.tooling.internal.consumer;
    
    import org.gradle.tooling.Failure;
    import org.gradle.tooling.TestAssertionFailure;
    
    import java.util.List;
    
    public class DefaultTestAssertionFailure implements TestAssertionFailure {
    
        private final String message;
        private final String description;
        private final List<? extends Failure> causes;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/TestFailureSpecification.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.integtests.tooling.fixture
    
    import org.gradle.tooling.TestAssertionFailure
    import org.gradle.tooling.events.ProgressEvent
    import org.gradle.tooling.events.ProgressListener
    import org.gradle.tooling.events.test.TestFailureResult
    import org.gradle.tooling.events.test.TestFinishEvent
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 10 17:52:51 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/FileComparisonTestAssertionFailure.java

    /**
     * Represent a test assertion failure where the test fails due to a broken assertion.
     *
     * @since 8.3
     */
    @Incubating
    public interface FileComparisonTestAssertionFailure extends TestAssertionFailure {
    
        /**
         * Returns the string representation of the expected value.
         *
         * @return the expected value or {@code null} if the test framework doesn't supply detailed information on assertion failures
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top