Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for createSupplier (0.25 sec)

  1. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/MavenToolchainsInstallationSupplierTest.groovy

        def "supplies no installations for non-existing directory"(boolean useProperty) {
            assert mavenHome.delete()
    
            given:
            def supplier = useProperty ? createSupplier(mavenHome.getCanonicalPath(), null) : createSupplier(null, userHome)
    
            when:
            def directories = supplier.get()
    
            then:
            directories.isEmpty()
    
            where:
            useProperty << [true, false]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/WindowsInstallationSupplierTest.groovy

    class WindowsInstallationSupplierTest extends Specification {
    
        def registry = Mock(WindowsRegistry)
    
        def "no detection for non-windows os"() {
            given:
            def supplier = createSupplier(OperatingSystem.MAC_OS)
    
            when:
            supplier.get()
    
            then:
            0 * registry._
        }
    
        def "finds openjdk homes"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 22:14:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/AutoInstalledInstallationSupplierTest.groovy

            given:
            def supplier = createSupplier([] as Set)
    
            when:
            def directories = supplier.get()
    
            then:
            directories.isEmpty()
        }
    
        def "supplies single installations for single candidate"() {
            def jdk = temporaryFolder.createDir("11.0.6.hs-adpt")
            given:
            def supplier = createSupplier([jdk] as Set)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 23:01:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top