Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for equals (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/DefaultSerializerTest.groovy

            DefaultSerializer rhsSerializer = new DefaultSerializer(getClass().classLoader)
            DefaultSerializer lhsSerializer = new DefaultSerializer(getClass().classLoader)
    
            when:
            def areEquals = rhsSerializer.equals(lhsSerializer);
    
            then:
            areEquals
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/DefaultToolchainSpecTest.groovy

    class DefaultToolchainSpecTest extends Specification {
        JavaToolchainSpec createSpec() {
            TestUtil.objectFactory().newInstance(DefaultToolchainSpec)
        }
    
        def "spec key implements equals"() {
            given:
            def spec11 = createSpec()
            def spec12 = createSpec()
            def spec11Vendor1 = createSpec()
            def spec11Vendor2 = createSpec()
            def spec11Impl1 = createSpec()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiClientJdkCompatibilityTest.groovy

                        System.out.println("allow unusable daemons = " + allowUnusable);
                        try {
                            if (action.equals("help")) {
                                runHelp(projectDir, gradleVersion, javaHome, gradleUserHome);
                            } else if (action.equals("action")) {
                                buildAction(projectDir, gradleVersion, javaHome, gradleUserHome);
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationNotificationsFixture.groovy

                        verify(notification.getNotificationOperationResult(), 'Result')
                    }
    
                    private void verify(Object obj, String suffix = null) {
                        if (obj.getClass().getName().equals("org.gradle.internal.operations.OperationProgressDetails")) {
                            // This progress notification is emitted by Gradle itself.
                            return;
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            file("build/reports/pmd/test.xml").assertContents(containsClass("org.gradle.Class1Test"))
            output.contains "\tUsing multiple unary operators may be a bug"
            output.contains "\tEnsure you override both equals() and hashCode()"
        }
    
        void "can configure number of threads on good code"() {
            goodCode()
            buildFile << """
                pmd {
                    threads = 2
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top