Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 153 for equals (0.17 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-runtime/functional/src/test/groovy/org/gradle/internal/EitherTest.groovy

        enum LeftValue {
            LEFT, LEFT2
        }
    
        enum RightValue {
            RIGHT, RIGHT2
        }
    
        def left = either(LEFT)
        def right = either(RIGHT)
    
        def "equals() works"() {
            expect:
            either(LEFT) == either(LEFT)
            either(LEFT2) == either(LEFT2)
            either(LEFT) != either(LEFT2)
            either(LEFT2) != either(LEFT)
            either(LEFT) != either(RIGHT)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:22:02 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultAnsiExecutorTest.groovy

            writeCursor == Cursor.at(startRow, TERMINAL_WIDTH)
            writePos == writeCursor
            0 * newLineListener._
        }
    
        def "a new line after a line wrap will callback the listener with a column value equals to the number of char left from the wrap"() {
            given:
            consoleMetaData.cols >> TERMINAL_WIDTH
            Cursor writePos = Cursor.at(1, 0)
            int startRow = writePos.row
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestEnvironmentIntegrationTest.groovy

                import java.security.Permission;
    
                public class MySecurityManager extends SecurityManager {
                    public MySecurityManager() {
                        assert getClass().getName().equals(System.getProperty("java.security.manager"));
                    }
    
                    @Override
                    public void checkPermission(Permission permission) {
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top