- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 153 for equals (0.23 sec)
-
platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy
} def "#a == #b: #equals"() { def hashA = HashCode.fromString(a) def hashB = HashCode.fromString(b) expect: (hashA == hashB) == equals (hashB == hashA) == equals where: a | b | equals
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 8.2K bytes - Viewed (0) -
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) -
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) -
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/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)