- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 110 for equals (0.2 sec)
-
platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ProjectInternalViewDependencyIntegrationTest.groovy
// `implementation` dependencies are accessible assert new com.fasterxml.jackson.databind.ObjectMapper().readTree("{\\\"hello\\\": \\\"test\\\"}").get("hello").asText().equals("test"); // `compileOnly` dependencies are accessible at compile-time try { assert org.apache.commons.lang3.StringUtils.length("Hello, Gradle!") == 14;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 28 23:38:57 UTC 2024 - 5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r23/GradleProjectCrossVersionSpec.groovy
connection.getModel(GradleProject.class) } then: gradleProject != null gradleProject.tasks.find { it.name.equals('publicTask') }.isPublic() !gradleProject.tasks.find { it.name.equals('privateTask') }.isPublic() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.4K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultIsolatedProjectSpec.groovy
class DefaultIsolatedProjectSpec extends Specification { def "delegates equals and hashCode to project"() { given: def project = Mock(ProjectInternal) def subject = new DefaultIsolatedProject(project, project) when: def hashCode = subject.hashCode() def equality = subject.equals(new DefaultIsolatedProject(project, project)) then: hashCode == 42
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 22 13:01:58 UTC 2024 - 1.2K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultTargetMachineFactoryTest.groovy
expect: def targetMachines = [windows1, windows2, linux1, linux2] as Set targetMachines.size() == 2 targetMachines == [windows1, linux1] as Set } def "same target machine are equals"() { expect: factory.windows == factory.windows factory.linux == factory.linux factory.macOS == factory.macOS factory.windows.x86 == factory.windows.x86
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 2.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/classpath/ClasspathWalkerTest.groovy
assert entry.path.toString() == "a.class" assert Arrays.equals(entry.content, "a".bytes) } 1 * visitor.visit({ it.name == "a/b/c.class" }) >> { ClasspathEntryVisitor.Entry entry -> assert entry.path.toString() == "a/b/c.class" assert Arrays.equals(entry.content, "c".bytes) } 0 * visitor._ } def "visits files of zip"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 20 11:15:22 UTC 2023 - 3.7K bytes - Viewed (0) -
platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingSetTest.groovy
"size()" | call(s -> s.size()) "isEmpty()" | call(s -> s.isEmpty()) "hashCode()" | call(s -> s.hashCode()) "equals(Object)" | call(s -> Objects.equals(s, Collections.emptySet())) // Ensure that a real equals is invoked and not a Groovy helper "removeIf(Predicate)" | call(s -> s.removeIf(e -> false)) } def "method clear is reported"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Nov 11 00:37:04 UTC 2023 - 6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/model/NamedObjectInstantiatorTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/EvaluationContextTest.groovy
// Have to use reference check because owner's equals is broken ex.evaluationCycle[0] === owner ex.evaluationCycle[1] === owner where: evaluator << [evaluateInLambda(), evaluateInBlock()] } def "can handle owner with broken equals in tryEvaluate"() { given: owner.equals(_) >> { false } when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Dec 15 20:21:33 UTC 2023 - 8.1K bytes - Viewed (0) -
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) -
platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AbstractAccessTrackingMapTest.groovy
"isEmpty()" | call(m -> m.isEmpty()) "size()" | call(m -> m.size()) "hashCode()" | call(m -> m.hashCode()) "equals()" | call(m -> Objects.equals(m, Collections.emptyMap())) // Ensure that a real equals is invoked and not a Groovy helper "entrySet().size()" | call(m -> m.entrySet().size()) "entrySet().iterator()" | call(m -> m.entrySet().iterator())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Nov 11 00:37:04 UTC 2023 - 8.8K bytes - Viewed (0)