Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for strictlyEquals (0.86 sec)

  1. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/DefaultComponentSpecIdentifierTest.groovy

            def differentName = topLevel.child("other")
            def differentParent = differentName.child("child")
    
            Matchers.strictlyEquals(topLevel, sameTopLevel)
            Matchers.strictlyEquals(child, sameChild)
            topLevel != differentProject
            child != differentName
            child != differentParent
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/DefaultProjectComponentSelectorTest.groovy

    import org.gradle.util.Path
    import spock.lang.Specification
    
    import static org.gradle.internal.component.local.model.TestComponentIdentifiers.newSelector
    import static org.gradle.util.Matchers.strictlyEquals
    
    class DefaultProjectComponentSelectorTest extends Specification {
    
        def "is instantiated with non-null constructor parameter values"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/DefaultLibraryComponentSelectorTest.groovy

    import org.gradle.api.internal.artifacts.DefaultModuleIdentifier
    import org.gradle.internal.component.external.model.DefaultModuleComponentIdentifier
    import spock.lang.Specification
    
    import static org.gradle.util.Matchers.strictlyEquals
    
    class DefaultLibraryComponentSelectorTest extends Specification {
        def "is instantiated with non-null constructor parameter values"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/util/Matchers.java

                }
            };
        }
    
        @Factory
        public static <T> Matcher<T> strictlyEqual(final T other) {
            return new BaseMatcher<T>() {
                @Override
                public boolean matches(Object o) {
                    return strictlyEquals(o, other);
                }
    
                @Override
                public void describeTo(Description description) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/NoInputsRuleActionTest.groovy

            action.inputTypes.empty
        }
    
        def "equality"() {
            def baseAction = {String val -> } as Action<String>
            def noInputsAction = ruleAction(baseAction)
    
            expect:
            Matchers.strictlyEquals(noInputsAction, ruleAction(baseAction))
            noInputsAction != ruleAction({String val -> } as Action<String>)
        }
    
        RuleAction<String> ruleAction(Action<String> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/OpaqueComponentArtifactIdentifierTest.groovy

            def sameId = new OpaqueComponentArtifactIdentifier(new File("one"))
            def differentId = new OpaqueComponentArtifactIdentifier(new File("two"))
    
            expect:
            Matchers.strictlyEquals(id, sameId)
            id != differentId
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/ComponentFileArtifactIdentifierTest.groovy

            def differentComponent = new ComponentFileArtifactIdentifier(otherId, "one")
            def differentName = new ComponentFileArtifactIdentifier(componentId, "two")
    
            expect:
            Matchers.strictlyEquals(id, sameId)
            id != differentComponent
            id != differentName
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:39 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathTest.groovy

    import org.gradle.util.Matchers
    import spock.lang.Specification
    
    class PathTest extends Specification {
        def "paths are equal when they have the same canonical url"() {
            expect:
            Matchers.strictlyEquals(new Path('file://$ROOT_DIR$/file'), new Path('file://$ROOT_DIR$/file'))
            new Path('file://$ROOT_DIR$/file') != new Path('file://$ROOT_DIR$/other')
        }
    
        def "equals honors subclasses"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/DefaultBuildIdentifierTest.groovy

            def id = new DefaultBuildIdentifier(Path.path(":one"))
            def same = new DefaultBuildIdentifier(Path.path(":one"))
            def different = new DefaultBuildIdentifier(Path.path(":two"))
    
            Matchers.strictlyEquals(id, same)
            id != different
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 11 09:18:31 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/DefaultModuleComponentSelectorTest.groovy

    import org.gradle.api.internal.attributes.ImmutableAttributes
    import spock.lang.Specification
    
    import static org.gradle.internal.component.local.model.TestComponentIdentifiers.newProjectId
    import static org.gradle.util.Matchers.strictlyEquals
    import static org.gradle.util.AttributeTestUtil.attributes
    
    class DefaultModuleComponentSelectorTest extends Specification {
        private static ImmutableVersionConstraint v(String version) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9.6K bytes
    - Viewed (0)
Back to top