Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 38 for equals (0.17 sec)

  1. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/GradleVersionSpecTest.groovy

            !spec.isSatisfiedBy(GradleVersion.version("1.5"))
            !spec.isSatisfiedBy(GradleVersion.version("1.5-rc-1"))
            !spec.isSatisfiedBy(GradleVersion.version("12.45"))
        }
    
        def "equals version constraint matches versions with same base version"() {
            def spec = new GradleVersionSpec().toSpec("=1.4")
    
            expect:
            spec.isSatisfiedBy(GradleVersion.version("1.4"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            boolean foundBeforeConf = false;
            for (Configuration configuration : hierarchy) {
                if (configuration.equals(beforeConf)) {
                    foundBeforeConf = true;
                }
                if (configuration.equals(afterConf)) {
                    assertThat(foundBeforeConf, equalTo(true));
                }
            }
        }
    
        def "get dependencies"() {
            def configuration = conf()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompilerIntegrationSpec.groovy

            // Verify some assumptions: that we've got the correct characters in there, and that we're not using the system encoding
            assert code.contains(new String(Character.toChars(0x3b1)))
            assert !Arrays.equals(code.bytes, file.bytes)
        }
    
        def badCode() {
            file("src/main/java/compile/test/Person.java") << """
                package compile.test;
    
                public class Person {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 01 01:34:12 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

                            java.util.jar.Attributes mainAttributes = manifest.getMainAttributes()
                            String symbolicName = mainAttributes.getValue("Bundle-SymbolicName")
                            if ("com.google.guava".equals(symbolicName)) {
                                println "Guava version: " + mainAttributes.getValue("Bundle-Version")
                                break
                            }
                        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 31K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ApplicationPluginIntegrationTest.groovy

            outputContains('Hello World!')
    
            cleanup:
            testJavaHome.usingNativeTools().deleteDir() //remove symlink
        }
    
        @Requires(UnitTestPreconditions.UnixDerivative)
        def "java PID equals script PID"() {
            given:
            succeeds('installDist')
            def binFile = file('build/install/sample/bin/sample')
            binFile.text = """#!/usr/bin/env sh
    echo Script PID: \$\$
    
    $binFile.text
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

                            return
                        }
                    }
                    if (revalidate) {
                        String cacheControl = request.getHeader("Cache-Control")
                        if (!cacheControl.equals("max-age=0")) {
                            response.sendError(412, String.format("Precondition Failed: Expected Cache-Control:max-age=0 but was '%s'", cacheControl))
                            return
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

                'one/ignore',
                'one/sub/ignore',
                'two/ignore'
            )
            def it = file('dest/root.renamed_twice').readLines().iterator()
            it.next().equals('[prefix: line 1]')
            it.next().equals('[prefix: line 2]')
        }
    
        def "copy from location specified lazily using Groovy closure"() {
            given:
            file('files/a.txt').createFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/bean/DefaultPropertyWalkerTest.groovy

            IllegalStateException e = thrown(IllegalStateException)
            e.message == "Cycles between nested beans are not allowed. Cycle detected between: '<root>' and 'nested.left'."
        }
    
        def "nested beans can be equal"() {
            def task = project.tasks.create("myTask", TaskWithNestedObject)
            task.nested = new Tree(value: "root", right: new Tree(value: "right", right: new Tree(value: "right")))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/JUnitTestClassExecutionResult.groovy

                assertThat(******@****.***(), CoreMatchers.not(CoreMatchers.equalTo('')))
                assertThat(******@****.***(), CoreMatchers.not(CoreMatchers.equalTo('')))
                assertThat(******@****.***(), CoreMatchers.not(CoreMatchers.equalTo('')))
                assertThat(******@****.***(), CoreMatchers.not(CoreMatchers.equalTo('')))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/util/ConfigureUtilTest.groovy

            obj.empty
        }
    
        def canConfigureObjectUsingClosure() {
            given:
            List obj = []
            def cl = {
                add('a');
                assertThat(size(), equalTo(1));
                assertThat(obj, equalTo(['a']))
            }
    
            when:
            ConfigureUtil.configure(cl, obj)
    
            then:
            obj == ['a']
        }
    
        def passesConfiguredObjectToClosureAsParameter() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:40:52 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top