Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for rethrowsFailureWhenFailureIsRuntimeException (0.53 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/TaskStateInternalTest.groovy

        public void rethrowFailureDoesNothingWhenTaskDidNotFail() {
            state.setOutcome(TaskExecutionOutcome.EXECUTED)
            state.rethrowFailure()
        }
    
        @Test
        public void rethrowsFailureWhenFailureIsRuntimeException() {
            RuntimeException failure = new RuntimeException()
            state.setOutcome(failure)
            try {
                state.rethrowFailure()
                fail()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 30 07:54:03 UTC 2020
    - 3.7K bytes
    - Viewed (0)
Back to top