Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for equals (0.25 sec)

  1. 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)
  2. 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)
  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. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/TaskCustomTypesInputPropertyIntegrationTest.groovy

        public CustomType(String value) { this.value = value; }
    
        public boolean equals(Object o) {
            CustomType other = (CustomType)o;
            return other.value.equals(value);
        }
    
        public int hashCode() { return value.hashCode(); }
    }
    """
        }
    
        String customSerializableTypeWithNonDeterministicSerializedForm() {
            // A type where equals() may return true for values where the serialized forms are different
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 22 16:04:50 UTC 2022
    - 9.9K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformEnvironmentIntegrationTest.groovy

                    @org.junit.jupiter.api.Test
                    public void checkEnvironment() {
                        assert System.getProperty("projectDir").equals(System.getProperty("user.dir"));
                        assert "value".equals(System.getProperty("testSysProperty"));
                        assert "value".equals(System.getenv("TEST_ENV_VAR"));
    
                        assert ClassLoader.getSystemClassLoader() == getClass().getClassLoader();
    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/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)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ExclusiveVariantsIntegrationTest.groovy

                            attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category, "custom"))
                        }
                        if (!"${capability}".equals('default')) {
                            outgoing.capability('org.test:sample:1.0')
                        }
                    }
    
                    sample2 {
                        canBeResolved = false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:34:52 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy

                                        assert new BigInteger("4").equals(element.getBigIntegerProperty());
                                        assert new BigDecimal("5.5").equals(element.getBigDecimalProperty());
                                        assert element.getStringProperty().equals("test");
                                        assert "sample.txt".equals(element.getFile().toString());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

            boolean isFlag()
        }
    
        def "equals() returns false for non-compatible types"() {
            def impl = newNodeBackedInstance(SomeType)
            expect:
            !impl.equals(null)
            !impl.equals(1)
        }
    
        def "Two node backed views are equal when their state objects are equal"() {
            def state1 = Mock(ModelElementState)
            def state2 = Mock(ModelElementState)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K 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