Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,730 for failure2 (0.14 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/build/ExecutionResultTest.groovy

            expect:
            result.failures == [failure1, failure2]
            result.failure instanceof MultipleBuildFailures
            result.failure.causes == [failure1, failure2]
            result.failureOrNull instanceof MultipleBuildFailures
            result.failureOrNull.causes == [failure1, failure2]
    
            when:
            result.valueOrRethrow
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 03:31:42 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy

        def stopRethrowsFirstExecutionException() {
            given:
            def failure1 = new RuntimeException()
            def runnable1 = {
                instant.broken1
                throw failure1
            }
    
            def failure2 = new RuntimeException()
            def runnable2 = {
                instant.broken2
                throw failure2
            }
    
            when:
            def executor = factory.create('test')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/TestReportDataCollectorSpec.groovy

            when:
            collector.beforeTest(test)
            collector.afterTest(test, result)
    
            then:
            def failures = results["FooTest"].results[0].failures
            failures.size() == 2
            failures[0].exceptionType == RuntimeException.name
            failures[0].message == failure1.rawFailure.toString()
            failures[0].stackTrace.startsWith(failure1.rawFailure.toString())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/IntermediateBuildActionRunnerTest.groovy

            def e = thrown(MultipleBuildOperationFailures)
            e.causes == [failure1, failure2]
    
            1 * buildModelParameters.isParallelToolingApiActions() >> false
            1 * action1.get() >> { throw failure1 }
            1 * action2.get() >> { throw failure2 }
            1 * action3.get() >> "three"
            0 * _
        }
    
        def "collects all failures from actions when queued to run in parallel"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 20 17:58:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemDiagnosticsFactoryTest.groovy

            stream.forCurrentCaller().stack.empty
    
            def failure1 = new Exception("broken")
            def diagnostics1 = stream.forCurrentCaller(failure1)
            diagnostics1.exception == failure1
            !diagnostics1.stack.empty
    
            def failure2 = new Exception("broken")
            def diagnostics2 = factory.forException(failure2)
            diagnostics2.exception == failure2
            !diagnostics2.stack.empty
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:15:42 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ExceptionTrackingFailureHandlerTest.groovy

            when:
            dispatch.dispatchFailed("message1", failure1)
            dispatch.dispatchFailed("message2", failure2)
            dispatch.stop()
    
            then:
            def e = thrown(DispatchException)
            e.cause == failure1
            1 * logger.error('broken2', failure2)
            0 * logger._
        }
    
        def stopDoesNothingWhenThereWereNoFailures() {
            when:
            dispatch.stop()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/configuration/project/LifecycleProjectEvaluatorTest.groovy

            and:
            1 * listener.afterEvaluate(project, state) >> { throw failure2 }
    
            then:
            failsWithCause(failure1, failure2)
    
            and:
            operations.size() == 3
            assertConfigureOp(operations[0], failure1)
            assertBeforeEvaluateOp(operations[1])
            assertAfterEvaluateOp(operations[2], failure2)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/build/DefaultBuildLifecycleControllerTest.groovy

            then:
            executionResult.failures == [failure, failure2]
    
            when:
            def finishResult = controller.finishBuild(null)
    
            then:
            1 * exceptionAnalyser.transform([failure, failure2]) >> transformedException
            1 * buildListener.buildFinished({ it.failure == transformedException }) >> { throw failure3 }
            finishResult.failures == [failure3]
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 11:17:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServerTest.groovy

            ]
    
            and:
            failure1 != null
            failure2 != null
            failure3 != null
        }
    
        def "fails when too many concurrent requests happen while waiting for multiple concurrent requests to automatically release"() {
            def failure1 = null
            def failure2 = null
            def failure3 = null
    
            given:
            server.start()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/CompositeStoppableTest.groovy

            RuntimeException failure1 = new RuntimeException()
            RuntimeException failure2 = new RuntimeException()
            stoppable.add(a)
            stoppable.add(b)
    
            when:
            stoppable.stop()
    
            then:
            1 * a.stop() >> { throw failure1 }
            1 * b.stop() >> { throw failure2 }
            def e = thrown(RuntimeException)
            e == failure1
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top