Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 153 for equals (0.17 sec)

  1. platforms/jvm/scala/src/test/groovy/org/gradle/api/tasks/scala/ScalaDocSpec.groovy

        def "test Scala Includes"() {
            expect:
            scalaDoc.include(TEST_PATTERN_1, TEST_PATTERN_2) == scalaDoc
            scalaDoc.getIncludes().equals(WrapUtil.toLinkedSet(TEST_PATTERN_1, TEST_PATTERN_2))
    
            scalaDoc.include(TEST_PATTERN_3) == scalaDoc
            scalaDoc.getIncludes().equals(WrapUtil.toLinkedSet(TEST_PATTERN_1, TEST_PATTERN_2, TEST_PATTERN_3))
        }
    
        def "test Scala Excludes"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/NamespaceIdTest.groovy

            id.getName() == "some-name"
        }
    
        def "hashCode and equals determine equality" () {
            given:
            NamespaceId id1 = new NamespaceId("some-namespace", "some-name")
            NamespaceId id2 = new NamespaceId("some-namespace", "some-name")
    
            expect:
            id1 Matchers.strictlyEqual(id2)
        }
    
        def "hashCode and equals determine inequality" () {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/ModuleLibraryTest.groovy

            createModuleLibraryWithScope(null).equals(createModuleLibraryWithScope("COMPILE"))
            createModuleLibraryWithScope("").equals(createModuleLibraryWithScope("COMPILE"))
            createModuleLibraryWithScope("COMPILE").equals(createModuleLibraryWithScope(null))
            createModuleLibraryWithScope("COMPILE").equals(createModuleLibraryWithScope(""))
            createModuleLibraryWithScope("").equals(createModuleLibraryWithScope(""))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/TryTest.groovy

            then:
            a !== b
            a.equals(a)
            a.equals(b)
            b.equals(a)
        }
    
        def "can compare null-holding try with non-null"() {
            when:
            def a = Try.successful(null as String)
            def b = Try.successful("value")
    
            then:
            !a.equals(b)
            !b.equals(a)
        }
    
        def "null try has a hashcode"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/ModuleDependencyTest.groovy

            expect:
            new ModuleDependency("a", null).equals(new ModuleDependency("a", "COMPILE"))
            new ModuleDependency("a", "").equals(new ModuleDependency("a", "COMPILE"))
            new ModuleDependency("a", "COMPILE").equals(new ModuleDependency("a", ""))
            new ModuleDependency("a", "COMPILE").equals(new ModuleDependency("a", null))
            new ModuleDependency("a", "").equals(new ModuleDependency("a", ""))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/internal-instrumentation-processor/src/test/groovy/org/gradle/internal/instrumentation/processor/codegen/jvmbytecode/InterceptJvmCallsGeneratorTest.groovy

                            String descriptor, boolean isInterface, Supplier<MethodNode> readMethodNode) {
                        if (owner.equals("java/io/File")) {
                            if (name.equals("listFiles") && descriptor.equals("()[Ljava/io/File;") && (opcode == Opcodes.INVOKEVIRTUAL || opcode == Opcodes.INVOKEINTERFACE)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 19:21:09 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. platforms/core-runtime/internal-instrumentation-processor/src/test/groovy/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeCodeGenTest.groovy

                             if (name.equals("isIncremental") && descriptor.equals("()Z") && (opcode == Opcodes.INVOKEVIRTUAL || opcode == Opcodes.INVOKEINTERFACE)) {
                                 mv._INVOKESTATIC(TASK__ADAPTER_TYPE, "access_get_isIncremental", "(Lorg/gradle/test/Task;)Z");
                                 return true;
                             }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/testng/TestNGListenerAdapterFactorySpec.groovy

            !listener1.equals(differentListener)
            !listener1.equals(null)
        }
    
        /**
         * covered by {@code org.gradle.testing.testng.TestNGIntegrationTest}
         */
        def "adapts to internal IConfigurationListener interface if available on class path"() {}
    
        def "adapter forwards all IConfigurationListener calls"() {
            IConfigurationListener adapter = factory.createAdapter(listener)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-development/src/integTest/resources/org/gradle/compile/daemon/ParallelCompilerDaemonIntegrationTest/shared/GroovyClass.groovy

            return result;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (obj == this) {
                return true;
            }
            if (obj == null || obj.getClass() != getClass()) {
                return false;
            }
            GroovyClass other = (GroovyClass) obj;
            return files.equals(other.files);
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:27:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. 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)
Back to top