Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 169 for equals (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/WeakIdentityHashMapTest.groovy

        }
    
        class Thing {
            String name
    
            Thing(String name) {
                this.name = name
            }
    
            @Override
            boolean equals(Object obj) {
                return obj.name == name
            }
    
            @Override
            int hashCode() {
                return name.hashCode()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.5K 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/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4RerunPreviousFailedTestIntegrationTest.groovy

                        @Test
                        public void failedTest() {
                            System.out.println("Test index " + ${it});
                            if("${it}".equals(System.getProperty("${INDEX_OF_TEST_TO_FAIL}"))) {
                                throw new RuntimeException();
                            }
                        }
                    }
                """.stripIndent()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelPathTest.groovy

            path.parent == ModelPath.path(["a", "b"])
            path.parent.toString() == "a.b"
            path.rootParent == ModelPath.path("a")
            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"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. 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)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelReferenceTest.groovy

            reference.path == null
            reference.type == ModelType.of(String)
            !reference.untyped
            reference.state == ModelNode.State.GraphClosed
        }
    
        def "equals"() {
            expect:
            def path = ModelReference.of("path")
            def type = ModelReference.of(String)
            def pathAndType = ModelReference.of("path", String)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top