- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 378 for OnComplete (0.12 sec)
-
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultTestLauncherTest.groovy
when: launcher.run() then: 1 * executor.run(_, _) >> { ConsumerAction action, ResultHandlerVersion1 handler -> action.run(connection) handler.onComplete(null) } 1 * connection.runTests(_, _) >> { TestExecutionRequest request, ConsumerOperationParameters params -> assert request.testClassNames == ["test"]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 5.4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultPhasedBuildActionExecuterTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 6K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultBuildLauncherTest.groovy
adaptedHandler.onComplete(null) } 1 * connection.run(Void, _) >> {args -> ConsumerOperationParameters params = args[1] assert params.tasks == [':task1', ':task2'] assert params.standardOutput == stdout assert params.standardError == stderr return null } 1 * handler.onComplete(null) 0 * asyncConnection._
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 11.4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DefaultPhasedActionResultListener.java
onComplete(model, projectsLoadedHandler); } else if (type == PhasedActionResult.Phase.BUILD_FINISHED) { onComplete(model, buildFinishedHandler); } } private <T> void onComplete(Object result, @Nullable IntermediateResultHandler<T> handler) { if (handler != null) { handler.onComplete(Cast.<T>uncheckedNonnullCast(result)); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultModelBuilderTest.groovy
assert params.cancellationToken != null assert params.tasks == null return result } when: adaptedHandler.onComplete(result) then: 1 * handler.onComplete(result) 0 * _._ } def "can configure the operation"() { ResultHandler<GradleProject> handler = Mock() ResultHandlerVersion1<GradleProject> adaptedHandler
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 7.2K bytes - Viewed (0) -
platforms/core-runtime/cli/src/main/java/org/gradle/cli/CommandLineParser.java
} @Override public ParserState onStartNextArg() { return onComplete(); } @Override public ParserState onArgument(String argument) { return onComplete(); } @Override public ParserState onComplete() { commandLine.addExtraValue(arg); return state; } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 21.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultBuildActionExecuterTest.groovy
adaptedHandler = args[1] } 1 * connection.run(action, _) >> { args -> return result } when: adaptedHandler.onComplete(result) then: 1 * handler.onComplete(result) 0 * _._ } def "notifies handler of failure"() { ResultHandlerVersion1<GradleProject> adaptedHandler ResultHandler<GradleProject> handler = Mock()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 6.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultPhasedActionResultListenerTest.groovy
listener.onResult(new ProjectsLoadedResult<String>('result1')) listener.onResult(new BuildFinishedResult<String>('result2')) then: 1 * projectsLoadedHandler.onComplete('result1') 1 * buildFinishedHandler.onComplete('result2') } def "null handler is not called"() { def emptyListener = new DefaultPhasedActionResultListener(null, null) when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/ResultHandlerAdapter.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 12:11:05 UTC 2024 - 1.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/ResultHandlerVersion1.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.tooling.internal.protocol; public interface ResultHandlerVersion1<T> { void onComplete(T result); void onFailure(Throwable failure);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 780 bytes - Viewed (0)