Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for strictlyEquals (0.22 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelPathTest.groovy

            path == ModelPath.ROOT.child("a").child("b").child("c")
        }
    
        def "equals and hashcode"() {
            def p1 = ModelPath.path("a")
    
            expect:
            Matchers.strictlyEquals(p1, ModelPath.path("a"))
            p1 != ModelPath.path(("b"))
            p1 != ModelPath.path(("abc"))
            p1 != ModelPath.path(("a.b"))
            p1 != p1.parent
            p1 != p1.child("b")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultModuleIdentifierSpec.groovy

     * limitations under the License.
     */
    package org.gradle.api.internal.artifacts
    
    import spock.lang.Specification
    
    import static org.gradle.util.Matchers.strictlyEqual
    
    class DefaultModuleIdentifierSpec extends Specification {
    
        def "has useful toString()"() {
            def module = DefaultModuleIdentifier.newId("org.foo", "bar")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultModuleVersionIdentifierSpec.groovy

     * limitations under the License.
     */
    package org.gradle.api.internal.artifacts
    
    import spock.lang.Specification
    
    import static org.gradle.util.Matchers.strictlyEqual
    
    class DefaultModuleVersionIdentifierSpec extends Specification {
        def "has useful toString()"() {
            def module = new DefaultModuleVersionIdentifier("group", "module", "version")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/MissingLocalArtifactMetadataTest.groovy

            expect:
            withClassifier Matchers.strictlyEqual(same)
            withClassifier != differentName
            withClassifier != differentType
            withClassifier != differentExt
            withClassifier != differentAttributes
            withClassifier != emptyParts
            withClassifier != differentFile
    
            emptyParts Matchers.strictlyEqual(emptyPartsSame)
            emptyParts != withClassifier
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/MethodInvocationTest.groovy

     * limitations under the License.
     */
    package org.gradle.internal.dispatch
    
    import spock.lang.Specification
    
    import static org.gradle.util.Matchers.strictlyEqual
    import static org.hamcrest.MatcherAssert.assertThat
    
    class MethodInvocationTest extends Specification {
    
        def "equality"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/VersionParserTest.groovy

    import spock.lang.Subject
    
    import static org.gradle.util.Matchers.strictlyEqual
    
    class VersionParserTest extends Specification {
    
        @Subject
        VersionParser versionParser = new VersionParser()
    
        def "parsed version is equal when source string is equal"() {
            def v = parse("1.2.b")
            def equal = parse("1.2.b")
    
            expect:
            v strictlyEqual(equal)
            v != parse("1.2.c")
            v != parse("1.2")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultResolvableArtifactTest.groovy

            expect:
            artifact Matchers.strictlyEqual(equalArtifact)
            artifact Matchers.strictlyEqual(differentModule)
            artifact != differentId
        }
    
        def dep(String group, String moduleName, String version) {
            new DefaultModuleVersionIdentifier(group, moduleName, version)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/dependencies/DefaultProjectDependencyTest.groovy

        void "knows if is equal"() {
            expect:
            assertThat(new DefaultProjectDependency(project, true),
                strictlyEqual(new DefaultProjectDependency(project, true)))
    
            assertThat(new DefaultProjectDependency(project, "conf1", false, TestFiles.taskDependencyFactory()),
                strictlyEqual(new DefaultProjectDependency(project, "conf1", false, TestFiles.taskDependencyFactory())))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/DefaultModuleComponentArtifactIdentifierTest.groovy

            expect:
            withClassifier Matchers.strictlyEqual(same)
            withClassifier != differentModule
            withClassifier != differentName
            withClassifier != differentType
            withClassifier != differentExt
            withClassifier != differentAttributes
            withClassifier != emptyParts
    
            emptyParts Matchers.strictlyEqual(emptyPartsSame)
            emptyParts != withClassifier
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classpath/DefaultClassPathTest.groovy

            def extra = DefaultClassPath.of(file1, file2, file3)
            def different = DefaultClassPath.of(file3)
    
            expect:
            cp Matchers.strictlyEqual(same)
            cp Matchers.strictlyEqual(sameWithDuplicates)
            cp != differentOrder
            cp != missing
            cp != extra
            cp != different
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top