Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 110 for equals (0.33 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/TransformedComponentFileArtifactIdentifierTest.groovy

            expect:
            id.getOriginalFileName() == "original"
            id.getFileName() == "current"
            id.getDisplayName() == "original -> current (foo)"
        }
    
        def "equals and hash code differentiate between same and different instances"() {
            def componentId = newComponentId("foo")
    
            when:
            def id = new TransformedComponentFileArtifactIdentifier(componentId, "a", "b")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/metadata/DefaultExternalResourceMetaDataTest.groovy

            given:
            def sha1 = "abcd"*10
            def md = new DefaultExternalResourceMetaData(new URI("scheme:thing"), -1, -1, null, null, HashCode.fromString(sha1))
    
            expect:
            md.sha1.equals(HashCode.fromString(sha1))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/PublishArtifactLocalArtifactMetadataTest.groovy

            def metadata = new PublishArtifactLocalArtifactMetadata(componentId, publishArtifact)
    
            expect:
            metadata.getDisplayName() == "name-1234.jar (foo:foo:foo)"
        }
    
        def "equals and hash code differentiate between same and different instances"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:42 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/DefaultToolchainSpecTest.groovy

    class DefaultToolchainSpecTest extends Specification {
        JavaToolchainSpec createSpec() {
            TestUtil.objectFactory().newInstance(DefaultToolchainSpec)
        }
    
        def "spec key implements equals"() {
            given:
            def spec11 = createSpec()
            def spec12 = createSpec()
            def spec11Vendor1 = createSpec()
            def spec11Vendor2 = createSpec()
            def spec11Impl1 = createSpec()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. platforms/software/security/src/test/groovy/org/gradle/plugins/signing/signatory/pgp/PgpKeyIdSpec.groovy

            key(hex).asLong == decimal
            key(decimal).asHex == hex
    
            where:
            hex        | decimal
            "AAAAAAAA" | 2863311530
            "DA124B92" | 3658632082
        }
    
        def "equals impl"() {
            expect:
            key("AAAAAAAA") == key(2863311530)
        }
    
        def "comparison"() {
            expect:
            key("00000000") < key("00000001")
            key("00000001") > key("00000000")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classloader/CachingClassLoaderTest.groovy

            classLoader.visit(visitor)
    
            then:
            1 * visitor.visitSpec({it instanceof CachingClassLoader.Spec})
            1 * visitor.visitParent(parent)
            0 * visitor._
        }
    
        def "equals and hashcode"() {
            def c1 = new URLClassLoader()
            def c2 = new URLClassLoader()
    
            expect:
            new CachingClassLoader(c1) == new CachingClassLoader(c1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginDependenciesIntegrationTest.groovy

                    @Test
                    public void testFoo() {
                        Class1 c = new Class1();
                        assertTrue(c.isFoo("foo"));
                    }
    
                    public boolean equals(Object arg) { return java.lang.Boolean.valueOf(true); }
                }
                """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyExtraInfoTest.groovy

                    (new NamespaceId('http://my.extra.info', 'bar')): 'barValue'
            ])
    
            when:
            extraInfo.get('foo')
    
            then:
            def e = thrown(InvalidUserDataException)
            e.message.equals('Cannot get extra info element named \'foo\' by name since elements with this name were found from multiple namespaces (http://my.extra.info, http://some.extra.info).  Use get(String namespace, String name) instead.')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/ResourceFilterMatcherTest.groovy

    import org.gradle.plugins.ide.eclipse.model.internal.DefaultResourceFilterMatcher
    import spock.lang.Specification
    
    public class ResourceFilterMatcherTest extends Specification {
        def "ResourceFilterMatcher equals and hashCode satisfies contract"() {
            when:
            EqualsVerifier.forClass(DefaultResourceFilterMatcher.class)
                    .suppress(Warning.NONFINAL_FIELDS)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathTest.groovy

    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)
Back to top