- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for assertFailedWith (0.22 sec)
-
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r21/CancellationCrossVersionSpec.groovy
build.forTasks('hang') build.withCancellationToken(cancel.token()) build.run(resultHandler) resultHandler.finished() } then: resultHandler.assertFailedWith(BuildCancelledException) } def "can cancel build after completion"() { buildFile << """ task thing """ def cancel = GradleConnector.newCancellationTokenSource()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy
build.run(resultHandler) sync.waitForAllPendingCalls(resultHandler) connector.disconnect() resultHandler.finished() then: resultHandler.assertFailedWith(BuildCancelledException) } def "disconnect before build starts"() { when: def connector = toolingApi.connector() connector.connect() connector.disconnect()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 11.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/CancellationSpec.groovy
latch.await() """ } void buildWasCancelled(TestResultHandler resultHandler, String failureMessage = 'Could not execute build using') { resultHandler.assertFailedWith(BuildCancelledException) assert resultHandler.failure.message.startsWith(failureMessage) if (targetIsGradle51OrLater()) { verifyBuildCancelledExceptionMessage(resultHandler) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 6.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/TestResultHandler.groovy
} } def assertNoFailure() { if (failure == null) { return true } else { throw failure } } def assertFailedWith(Class<? extends GradleConnectionException> exceptionType) { if (failure?.getClass() == exceptionType) { return true } if (failure) { throw failure }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/CancellationCrossVersionSpec.groovy
build.run(resultHandler) sync.waitForAllPendingCalls(resultHandler) cancel.cancel() resultHandler.finished() } then: resultHandler.assertFailedWith(BuildCancelledException) resultHandler.failure.message.startsWith("Could not execute build using") if (targetDist.toolingApiHasCauseOnForcedCancel) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 8.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiRemoteIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 10.9K bytes - Viewed (0)