Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for parseNotation (0.15 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/PathNotationConverterTest.groovy

            expect:
            pathNotationParser.parseNotation(file) == file.path
        }
    
        def "with Number"() {
            expect:
            expected == pathNotationParser.parseNotation(input);
            where:
            input << [1, 1.5, -1]
            expected << ["1", "1.5", "-1"]
        }
    
        def "with Boolean"() {
            expect:
            expected == pathNotationParser.parseNotation(input);
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 30 16:46:40 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/typeconversion/EnumFromCharSequenceNotationParserSpec.groovy

            expect:
            TestEnum.ENUM1 == parser.parseNotation("ENUM1")
            TestEnum.ENUM1 == parser.parseNotation("enum1")
            TestEnum.ENUM1 == parser.parseNotation("EnUm1")
            TestEnum.ENUM2 == parser.parseNotation("enum2")
            TestEnum.ENUM3 == parser.parseNotation("enum3")
            TestEnum.ENUM_4_1 == parser.parseNotation("enum_4_1")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 11 23:49:44 UTC 2019
    - 2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/ExcludeRuleNotationConverterTest.groovy

            when:
            parser.parseNotation([group: 'aGroup', invalidKey1:"invalidValue"]);
            then:
            thrown(MissingPropertyException)
        }
    
        def "checkValidExcludeRuleMap is true if group or module is defined"() {
            expect:
            parser.parseNotation(WrapUtil.toMap(ExcludeRule.GROUP_KEY, "aGroup"));
            parser.parseNotation(WrapUtil.toMap(ExcludeRule.MODULE_KEY, "aModule"));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:11 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/DefaultArtifactHandlerTest.groovy

            when:
            artifactHandler.someConf("someNotation", "someNotation2")
    
            then:
            1 * artifactFactoryStub.parseNotation("someNotation") >> artifactDummy1
            1 * artifactFactoryStub.parseNotation("someNotation2") >> artifactDummy2
            1 * artifactsMock.add(artifactDummy1)
            1 * artifactsMock.add(artifactDummy2)
    
        }
    
        void failsWhenNoParameters() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemoryAmountTest.groovy

        }
    
        def "parse string notation"() {
            expect:
            MemoryAmount.parseNotation(null) == -1
            MemoryAmount.parseNotation('') == -1
            MemoryAmount.parseNotation(' ') == -1
            MemoryAmount.parseNotation('23') == 23
        }
    
        def "parse invalid string notation"() {
            when:
            MemoryAmount.parseNotation('invalid')
    
            then:
            thrown IllegalArgumentException
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/DefaultDependencyConstraintFactory.java

            injectServices(dependencyConstraint);
            return dependencyConstraint;
        }
    
        @Override
        public DependencyConstraint create(ProjectDependency project) {
            DependencyConstraint dependencyConstraint = dependencyConstraintNotationParser.getProjectDependencyNotationParser().parseNotation(project);
            injectServices(dependencyConstraint);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 22:19:12 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/CapabilityNotationParserFactoryTest.groovy

            when:
            def capability = lenientParser.parseNotation("foo:bar")
    
            then:
            capability.group == 'foo'
            capability.name == 'bar'
            capability.version == null
        }
    
        def "invalid string notation #notation is reported for strict parser"() {
            when:
            strictParser.parseNotation(notation)
    
            then:
            InvalidUserDataException ex = thrown()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. subprojects/core-api/src/test/groovy/org/gradle/internal/typeconversion/NotationConverterToNotationParserAdapterTest.groovy

            expect:
            parser.parseNotation(12) == "12"
        }
    
        def "can convert to null value"() {
            given:
            converter.convert(12, _) >> { Object notation, NotationConvertResult result -> result.converted(null) }
    
            expect:
            parser.parseNotation(12) == null
        }
    
        def "fails when the notation cannot be converted"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 15 16:06:48 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/notations/ModuleIdentifierNotationConverterTest.groovy

        def "parses module identifier notation"() {
            expect:
            parser.parseNotation("org.gradle:gradle-core") == newId("org.gradle", "gradle-core")
            parser.parseNotation(" foo:bar ") == newId("foo", "bar")
        }
    
        def "reports invalid notation"() {
            when: parser.parseNotation(notation)
            then: thrown(UnsupportedNotationException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/software/maven/src/test/groovy/org/gradle/api/publish/maven/internal/artifact/MavenArtifactNotationParserFactoryTest.groovy

                resolve(_) >> { Object path -> fileNotationParser.parseNotation(path) }
            }
            parser = new MavenArtifactNotationParserFactory(instantiator, fileResolver, TestFiles.taskDependencyFactory()).create()
        }
    
        def "directly returns MavenArtifact input"() {
            when:
            MavenArtifact mavenArtifact = Mock()
            def output = parser.parseNotation(mavenArtifact)
    
            then:
            output == mavenArtifact
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top