From 4e4ddb28c45d7d8f3cd3ec8c6159e699bc46d644 Mon Sep 17 00:00:00 2001 From: Julien Poissonnier Date: Tue, 26 Nov 2024 13:24:01 +0100 Subject: [PATCH] fix test name & format --- .../deployment/DeploymentInvokeDependsOnTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java b/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java index 92aa5a854ac..d5e3b9286d6 100644 --- a/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java +++ b/sdk/java/pulumi/src/test/java/com/pulumi/deployment/DeploymentInvokeDependsOnTest.java @@ -39,9 +39,9 @@ void cleanup() { } @Test - void testCustomInvokesDependsOntestCustomInvokesDependsOn() { + void testInvokesDependsOn() { var marker = new ResolveMarker(); - + var test = PulumiTestInternal.builder() .options(TestOptions.builder().preview(true).build()) .mocks(new Mocks() { @@ -57,7 +57,7 @@ public CompletableFuture newResourceAsync(ResourceArgs args) { Thread.currentThread().interrupt(); throw new RuntimeException(e); } - return ResourceResult.of(Optional.of(args.id + "_id"), ImmutableMap.of("prop", "some value")); + return ResourceResult.of(Optional.of(args.id + "_id"), ImmutableMap.of("prop", "some value")); }); return result; } @@ -85,10 +85,10 @@ public CompletableFuture> callAsync(CallArgs args) { assertThat(r).contains(ImmutableMap.of("root", ImmutableMap.of("test1", ImmutableList.of("1", "2", "3")))); return (Void) null; }); - + // Check that the resource was resolved when we called the invoke assertThat(marker.resolved).isTrue(); - + Internal.of(out).getDataAsync().join(); }); @@ -99,10 +99,10 @@ public CompletableFuture> callAsync(CallArgs args) { public static final class MyArgs extends ResourceArgs { // Empty } - + public static final class ResolveMarker { public boolean resolved; - + public ResolveMarker() { this.resolved = false; }