Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for equals (0.13 sec)

  1. testing/soak/src/testFixtures/groovy/org/gradle/launcher/daemon/fixtures/FullyQualifiedGarbageCollector.groovy

                } else {
                    return vendorComparison
                }
            } else {
                return gcComparison
            }
        }
    
        boolean equals(o) {
            if (this.is(o)) {
                return true
            }
            if (getClass() != o.class) {
                return false
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. 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)
  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/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

                            // After, we expect the test runtime classpath.
                            String[] filteredCliClasspath = Arrays.copyOfRange(splitCliClasspath, 1, splitCliClasspath.length);
                            java.util.Arrays.equals(splitTestRuntimeClasspath, filteredCliClasspath);
                        } else {
                            List<URL> systemClasspath = Arrays.asList(((URLClassLoader) ClassLoader.getSystemClassLoader()).getURLs());
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/resolve/ResolveTestFixture.groovy

            def expectedSorted = new ArrayList<String>(expected).sort()
            boolean equals = actual.size() == expectedSorted.size()
            if (equals) {
                for (int i = 0; i < actual.size(); i++) {
                    equals &= actualSorted.get(i).startsWith(expectedSorted.get(i))
                }
            }
            if (!equals) {
                def actualFormatted = Joiner.on("\n").join(actualSorted)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 37.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  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