Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 169 for equals (0.25 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/dependencies/AbstractDependencyDescriptorFactoryInternalSpec.groovy

            for (IvyArtifactName artifactDescriptor : artifactDescriptors) {
                if (artifactDescriptor.getName().equals(dependencyArtifact.getName())) {
                    return artifactDescriptor
                }
            }
            throw new RuntimeException("Descriptor could not be found")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 19:31:08 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParserTest.groovy

        }
    
        def "uses charset specified in content type"() {
            def html = """
            <a href="\u00c1\u00d2">directory1</a>
            """
            def encodedHtml = html.getBytes('ISO-8859-1')
            assert !Arrays.equals(encodedHtml, html.getBytes("utf-8"))
    
            expect:
            def uris = parser.parse(baseUrl, new ByteArrayInputStream(encodedHtml), 'text/html;charset=ISO-8859-1')
            uris.collect { it.toString() } == ["\u00c1\u00d2"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestReportIntegrationTest.groovy

            result.testClass("LoggingTest").assertStdout(equalTo("This is stdout.\n"))
            result.testClass("LoggingTest").assertStderr(equalTo("This is stderr.\n"))
    
            when:
            executer.withArguments("-DLogLessStuff=true")
            run "test"
    
            then:
            result.testClass("LoggingTest").assertStdout(equalTo("stdout.\n"))
            result.testClass("LoggingTest").assertStderr(equalTo("stderr.\n"))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

            "list(PrintWriter)"                       | call(p -> p.list(new PrintWriter(ByteStreams.nullOutputStream())))
            "equals(Object)"                          | call(p -> Objects.equals(p, new Properties()))  // Ensure that a real equals is invoked and not a Groovy helper
            "stringPropertyNames().iterator()"        | call(p -> p.stringPropertyNames().iterator())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/TimeFormattingTest.groovy

            TimeFormatting.formatDurationVeryTerse(60 * 1000 + 12 * 1000 + 309) == '1m12.31s'
        }
    
        def "shows #output when elapsed time is greater or equals than #lowerBoundInclusive but lower than #upperBoundExclusive"() {
            when:
            def result = TimeFormatting.formatDurationTerse(input)
    
            then:
            result == output
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsShadingIssuesIntegrationTest.groovy

                        byte[] relocated = ivy.getResourceAsStream('/org/gradle/internal/impldep/org/apache/ivy/plugins/parser/m2/m2-entities.ent').bytes
                        assert original.length > 0
                        assert Arrays.equals(original, relocated)
                    }
                }
            '''
            file('src/test/groovy/MyPluginTest.groovy') << pluginTest()
    
            then:
            succeeds 'test'
        }
    
        @Issue("GRADLE-3525")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/build/PlannedNodeGraphTest.groovy

            NodeType getNodeType() {
                return nodeType
            }
    
            @Override
            String toString() {
                return name
            }
    
            @Override
            boolean equals(o) {
                if (this.is(o)) {
                    return true
                }
                if (!(o instanceof TestNodeIdentity)) {
                    return false
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 21 13:11:56 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/registry/AbstractAnnotationModelRuleExtractorTest.groovy

            return registration
        }
    
        MethodRuleDefinition<?, ?> ruleDefinitionForMethod(String methodName) {
            for (Method candidate : ruleClass.getDeclaredMethods()) {
                if (candidate.getName().equals(methodName)) {
                    return DefaultMethodRuleDefinition.create(ruleClass, candidate)
                }
            }
            throw new IllegalArgumentException("Not a test method name")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultPolymorphicDomainObjectContainerTest.groovy

        }
    
        interface Person extends Named {}
    
        static abstract class AbstractPerson implements Person {
            String name
    
            String toString() { name }
    
    
            boolean equals(DefaultPerson other) {
                name == other.name
            }
    
            int hashCode() {
                name.hashCode()
            }
        }
    
        static class DefaultPerson extends AbstractPerson {
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 10 22:34:19 UTC 2021
    - 16K bytes
    - Viewed (0)
  10. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.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/scala/compile/test/Person.scala") << """package compile.test
    
    class Person(val name: String, val age: Int) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top