Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 165 for equals (3.23 sec)

  1. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

            1     | Fruit.apples     | Fruit.oranges    | 0.333333
        }
    
        def "amounts are equal when normalised values are the same"() {
            expect:
            def a = Amount.valueOf(valueA, unitsA)
            def b = Amount.valueOf(valueB, unitsB)
            a.equals(b)
            b.equals(a)
            a.hashCode() == b.hashCode()
            a.compareTo(b) == 0
            b.compareTo(a) == 0
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy

        }
    
        def "#a == #b: #equals"() {
            def hashA = HashCode.fromString(a)
            def hashB = HashCode.fromString(b)
    
            expect:
            (hashA == hashB) == equals
            (hashB == hashA) == equals
    
            where:
            a                                  | b                                  | equals
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/integtests/ApplicationIntegrationSpec.groovy

        public static void main(String[] args) {
            if (!"value".equals(System.getProperty("testValue"))) {
                throw new RuntimeException("Expected system property not specified");
            }
            if (!"some value".equals(System.getProperty("testValue2"))) {
                throw new RuntimeException("Expected system property not specified");
            }
            if (!"some value".equals(System.getProperty("testValue3"))) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 22:15:44 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ProjectInternalViewDependencyIntegrationTest.groovy

                        // `implementation` dependencies are accessible
                        assert new com.fasterxml.jackson.databind.ObjectMapper().readTree("{\\\"hello\\\": \\\"test\\\"}").get("hello").asText().equals("test");
    
                        // `compileOnly` dependencies are accessible at compile-time
                        try {
                            assert org.apache.commons.lang3.StringUtils.length("Hello, Gradle!") == 14;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r23/GradleProjectCrossVersionSpec.groovy

                connection.getModel(GradleProject.class)
            }
    
            then:
            gradleProject != null
            gradleProject.tasks.find { it.name.equals('publicTask') }.isPublic()
            !gradleProject.tasks.find { it.name.equals('privateTask') }.isPublic()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultIsolatedProjectSpec.groovy

    class DefaultIsolatedProjectSpec extends Specification {
    
        def "delegates equals and hashCode to project"() {
            given:
            def project = Mock(ProjectInternal)
            def subject = new DefaultIsolatedProject(project, project)
    
            when:
            def hashCode = subject.hashCode()
            def equality = subject.equals(new DefaultIsolatedProject(project, project))
    
            then:
            hashCode == 42
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 13:01:58 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultTargetMachineFactoryTest.groovy

            expect:
            def targetMachines = [windows1, windows2, linux1, linux2] as Set
            targetMachines.size() == 2
            targetMachines == [windows1, linux1] as Set
        }
    
        def "same target machine are equals"() {
            expect:
            factory.windows == factory.windows
            factory.linux == factory.linux
            factory.macOS == factory.macOS
            factory.windows.x86 == factory.windows.x86
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/classpath/ClasspathWalkerTest.groovy

                assert entry.path.toString() == "a.class"
                assert Arrays.equals(entry.content, "a".bytes)
            }
            1 * visitor.visit({ it.name == "a/b/c.class" }) >> { ClasspathEntryVisitor.Entry entry ->
                assert entry.path.toString() == "a/b/c.class"
                assert Arrays.equals(entry.content, "c".bytes)
            }
            0 * visitor._
        }
    
        def "visits files of zip"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingSetTest.groovy

            "size()"              | call(s -> s.size())
            "isEmpty()"           | call(s -> s.isEmpty())
            "hashCode()"          | call(s -> s.hashCode())
            "equals(Object)"      | call(s -> Objects.equals(s, Collections.emptySet()))  // Ensure that a real equals is invoked and not a Groovy helper
            "removeIf(Predicate)" | call(s -> s.removeIf(e -> false))
        }
    
        def "method clear is reported"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/model/NamedObjectInstantiatorTest.groovy

            def n2 = factory.named(Named, "b")
    
            n1.is(n1)
            !n1.is(n2)
    
            n1.name == "a"
            n2.name == "b"
    
            Matchers.strictlyEquals(n1, n1)
            n2 != n1
            !n2.equals(n1)
    
            n1.hashCode() == n1.hashCode()
            n1.hashCode() != n2.hashCode()
    
            n1.toString() == "a"
            n2.toString() == "b"
    
            n1.is(factory.named(Named, "a"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top