Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for askYesNo (0.36 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/userinput/UserInputHandlingIntegrationTest.groovy

            when:
            runWithInterruptedInput("askYesNo")
    
            then:
            result.output.count(YES_NO_PROMPT) == 1
            outputContains("result = <default>")
    
            where:
            richConsole << VALID_BOOLEAN_CHOICES
        }
    
        def "can ask yes/no and handle valid input '#input' in interactive build"() {
            when:
            runWithInput("askYesNo", YES_NO_PROMPT, stdin)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top