- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 3,608 for defn (0.37 sec)
-
platforms/ide/problems-api/src/test/groovy/org/gradle/internal/code/DefaultUserCodeApplicationContextTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Sep 27 13:19:04 UTC 2023 - 6.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/ExclusiveCacheAccessingWorkerTest.groovy
then: def e = thrown(RuntimeException) e == failure cleanup: cacheAccessWorker?.stop() } def "read completes after failed update"() { given: def failure = new RuntimeException() start(cacheAccessWorker) when: cacheAccessWorker.enqueue { throw failure } def result = cacheAccessWorker.read { 2 }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 4.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultDomainObjectSetTest.groovy
} def callsVetoActionBeforeObjectIsAdded() { def action = Mock(Action) container.beforeCollectionChanges(action) when: container.add("a") then: 1 * action.execute(null) 0 * _ } def objectIsNotAddedWhenVetoActionThrowsAnException() { def action = Mock(Action) def failure = new RuntimeException()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 16 23:50:58 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MethodInvocationSerializerTest.groovy
} def "serializes method invocations for multiple methods"() { def method1 = String.class.getMethod("substring", Integer.TYPE, Integer.TYPE) def method2 = String.class.getMethod("substring", Integer.TYPE) def invocation1 = new MethodInvocation(method1, [1, 2] as Object[]) def invocation2 = new MethodInvocation(method2, [3] as Object[])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/build/ExecutionResultTest.groovy
def otherSuccessful = ExecutionResult.succeeded() def failed = ExecutionResult.failed(failure1) def otherFailed = ExecutionResult.failed(failure2) def allFailed = ExecutionResult.maybeFailed([failure1, failure2]) expect: def result = successful.withFailures(otherSuccessful) result.value == 12 result.failures.empty def result2 = successful.withFailures(failed)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 03 03:31:42 UTC 2023 - 5.6K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/attributes/DefaultImmutableAttributesFactoryTest.groovy
private static final Attribute<String> BAZ = Attribute.of("baz", String) def isolatableFactory = SnapshotTestUtil.isolatableFactory() def instantiator = TestUtil.objectInstantiator() def factory = new DefaultImmutableAttributesFactory(isolatableFactory, instantiator) def "can create empty set"() { when: def attributes = factory.root then: attributes.empty
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 07 17:59:06 UTC 2022 - 8.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/DefaultModuleComponentArtifactIdentifierTest.groovy
def nameOnly = new DefaultModuleComponentArtifactIdentifier(componentId, "name", "type", null, null) def nameOnlyFileName = new ComponentFileArtifactIdentifier(componentId, "name-version") nameOnly.displayName == nameOnlyFileName.displayName } //ComponentFileArtifactIdentifier def "calculates a file name from attributes"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 6.3K bytes - Viewed (0) -
platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashingTest.groovy
and: def hasher2 = Hashing.newHasher() hasher2.putInt(1) then: "closing them in reverse order" def hash2 = hasher2.hash() def hash1 = hasher1.hash() then: hash2 == hash1 } def 'hasher works without calling final hash method'() { given: def value = ('a'..'z').join() when: def hasher1 = Hashing.newHasher()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/IncludeDirectivesSerializerTest.groovy
expressions[4].is(SimpleExpression.RIGHT_PAREN) } def "serializes macro directives"() { def macro1 = new MacroWithSimpleExpression("ONE", IncludeType.QUOTED, "one") def macro2 = new MacroWithSimpleExpression("TWO", IncludeType.MACRO, "two") def macro3 = new MacroWithComplexExpression("THREE", IncludeType.MACRO_FUNCTION, "abc", [])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 6.2K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/process/internal/MultiRequestWorkerProcessIntegrationTest.groovy
def "runs methods in a single worker process and stops when requested"() { when: def builder = workerFactory.multiRequestWorker(StatefulTestWorker.class) def worker = builder.build() worker.start() def result1 = worker.run("value") def result2 = worker.run("value") def result3 = worker.run("value") worker.stop()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Mar 15 22:51:06 UTC 2020 - 6.7K bytes - Viewed (0)