Skip to content

Commit

Permalink
static import
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 committed Oct 6, 2024
1 parent 947cc43 commit b138b42
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
import org.springframework.web.reactive.function.client.WebClient;

import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;

/**
Expand Down Expand Up @@ -88,14 +89,14 @@ static void invokeAndAssert(Util util, Set<String> namespaces, int port, String
EndpointNameAndNamespace resultOne = holder[0];
EndpointNameAndNamespace resultTwo = holder[1];

Assertions.assertThat(resultOne).isNotNull();
Assertions.assertThat(resultTwo).isNotNull();
assertThat(resultOne).isNotNull();
assertThat(resultTwo).isNotNull();

Assertions.assertThat(resultOne.endpointName()).contains("busybox");
Assertions.assertThat(resultTwo.endpointName()).contains("busybox");
assertThat(resultOne.endpointName()).contains("busybox");
assertThat(resultTwo.endpointName()).contains("busybox");

Assertions.assertThat(resultOne.namespace()).isEqualTo(assertionNamespace);
Assertions.assertThat(resultTwo.namespace()).isEqualTo(assertionNamespace);
assertThat(resultOne.namespace()).isEqualTo(assertionNamespace);
assertThat(resultTwo.namespace()).isEqualTo(assertionNamespace);

namespaces.forEach(namespace -> util.busybox(namespace, Phase.DELETE));

Expand Down

0 comments on commit b138b42

Please sign in to comment.