Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for equals (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFileHelper.groovy

    import java.nio.file.Files
    import java.nio.file.attribute.PosixFilePermissions
    import java.util.zip.GZIPOutputStream
    import java.util.zip.ZipInputStream
    
    import static org.hamcrest.CoreMatchers.equalTo
    import static org.hamcrest.MatcherAssert.assertThat
    import static org.junit.Assert.assertTrue
    
    class TestFileHelper {
        TestFile file
    
        TestFileHelper(TestFile file) {
            this.file = file
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/JUnitXmlResultWriterSpec.groovy

                .assertTestCount(4, 1, 1, 0)
                .assertTestFailed("some failing test", equalTo('failure message'))
                .assertTestsSkipped("some skipped test")
                .assertTestsExecuted("some test", "some test two", "some failing test")
                .assertStdout(equalTo("""1st output message
    2nd output message
    """))
                .assertStderr(equalTo("err"))
    
            and:
            xml == """<?xml version="1.0" encoding="UTF-8"?>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:51:05 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatterTest.groovy

            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.ClassName3.methodName3(FileName3.java:33)
    """
        }
    
        def "treat anonymous class and its enclosing class equally"() {
            testLogging.getShowCauses() >> true
            testLogging.getShowStackTraces() >> true
            testLogging.getStackTraceFilters() >> EnumSet.of(TestStackTraceFilter.TRUNCATE, TestStackTraceFilter.GROOVY)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/jvm/JvmTest.groovy

            where:
            version    | jreDirName    | jdkDirName
            '1.6.0'    | 'jre6'        | 'jdk1.6.0'
            '1.5.0_22' | 'jre1.5.0_22' | 'jdk1.5.0_22'
        }
    
        def "JVM are equal when their Java home dirs are the same"() {
            given:
            TestFile installDir = tmpDir.createDir('software')
            installDir.create {
                lib {
                    file 'tools.jar'
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top