Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for equals (0.11 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

    }
    
    class TestDomainObject implements Attachable<TestDomainObject>, Serializable {
        def value
    
        TestDomainObject(String value) {
            this.value = value
        }
    
        @Override
        boolean equals(Object o) {
            return o.value == value
        }
    
        @Override
        int hashCode() {
            return value.hashCode()
        }
    
        void attach(ClassMetaDataRepository<TestDomainObject> repository) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromSingleCustomPluginRepositorySpec.groovy

            settingsFile << """
              pluginManagement {
                repositories {
                  ${repo instanceof MavenRepository ? "maven" : "ivy"} {
                      url "${PathType.ABSOLUTE.equals(pathType) ? repo.uri : repo.rootDir.name}"
                  }
                }
              }
            """
            repo.uri
        }
    
        def "can resolve plugin from #pathType #repoType repo"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyRead.groovy

            return new SystemPropertyRead() {
                @Override
                String getJavaExpression() {
                    return "(String)System.getProperties().entrySet().stream().filter(e -> e.getKey().equals(\"$name\")).findFirst().get().getValue()";
                }
    
                @Override
                String getGroovyExpression() {
                    return "System.properties.entrySet().find { it.key == '$name'}.value"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginIncrementalAnalysisIntegrationTest.groovy

            // PMD Lvl 2 Warning BooleanInstantiation
            // PMD Lvl 3 Warning OverrideBothEqualsAndHashcode
            file("src/main/java/org/gradle/BadClass.java") <<
                "package org.gradle; class BadClass { public boolean equals(Object arg) { return java.lang.Boolean.valueOf(true); } }"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/NtlmAuthenticator.groovy

                    def response = NtlmPasswordAuthentication.getLMv2Response(authentication.domain, authentication.username, credentials, challenge, clientChallenge)
                    return Arrays.equals(hash, response)
                }
    
                return false
            }
        }
    
        private static class NtlmConnectionAuthentication {
            byte[] challenge
            Authentication.User user
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/registry/PersistentDaemonRegistryTest.groovy

            final String displayName
    
            TestAddress(String displayName) {
                this.displayName = displayName
            }
    
            boolean equals(o) {
                displayName == o.displayName
            }
    
            int hashCode() {
                displayName.hashCode()
            }
    
            @Override
            int getPort() {
                return 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/dependencies/AbstractDependencyDescriptorFactoryInternalSpec.groovy

            for (IvyArtifactName artifactDescriptor : artifactDescriptors) {
                if (artifactDescriptor.getName().equals(dependencyArtifact.getName())) {
                    return artifactDescriptor
                }
            }
            throw new RuntimeException("Descriptor could not be found")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 19:31:08 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/TimeFormattingTest.groovy

            TimeFormatting.formatDurationVeryTerse(60 * 1000 + 12 * 1000 + 309) == '1m12.31s'
        }
    
        def "shows #output when elapsed time is greater or equals than #lowerBoundInclusive but lower than #upperBoundExclusive"() {
            when:
            def result = TimeFormatting.formatDurationTerse(input)
    
            then:
            result == output
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.groovy

            // Verify some assumptions: that we've got the correct characters in there, and that we're not using the system encoding
            assert code.contains(new String(Character.toChars(0x3b1)))
            assert !Arrays.equals(code.bytes, file.bytes)
        }
    
        def badCode() {
            file("src/main/scala/compile/test/Person.scala") << """package compile.test
    
    class Person(val name: String, val age: Int) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheCircularReferenceIntegrationTest.groovy

                    }
    
                    int hashCode() {
                        assert a != null && z != null
                        a.hashCode() ^ z.hashCode()
                    }
    
                    boolean equals(Object other) {
                        assert a != null && z != null
                        (other instanceof Circular) && a == other.a && z == other.z
                    }
    
                    String toString() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top