Skip to content

Commit

Permalink
Tidy deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Feb 15, 2024
1 parent 1fcf0a4 commit e7602d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import io.quarkus.maven.it.RunAndCheckMojoTestBase;
import io.quarkus.maven.it.continuoustesting.ContinuousTestingMavenTestUtils;
import io.quarkus.test.devmode.util.DevModeTestUtils;

/**
* Because Pact uses Kotlin under the covers, we see different behaviour
Expand All @@ -36,12 +35,12 @@ protected void runAndCheck(boolean performCompile, String... options)
throws MavenInvocationException, FileNotFoundException {
run(performCompile, options);

String resp = DevModeTestUtils.getHttpResponse();
String resp = devModeClient.getHttpResponse();

assertThat(resp).containsIgnoringCase("ready").containsIgnoringCase("application")
.containsIgnoringCase("1.0-SNAPSHOT");

String json = DevModeTestUtils.getHttpResponse("/alpaca");
String json = devModeClient.getHttpResponse("/alpaca");
//Minimal sense check, the tests do the heavy validation
assertThat(json).containsIgnoringCase("colour");
}
Expand All @@ -55,7 +54,7 @@ public void testThatTheTestsPassed() throws MavenInvocationException, FileNotFou
await()
.pollDelay(100, TimeUnit.MILLISECONDS)
.atMost(5, TimeUnit.SECONDS)
.until(() -> DevModeTestUtils.getHttpResponse("/alpaca").startsWith("{"));
.until(() -> devModeClient.getHttpResponse("/alpaca").startsWith("{"));

ContinuousTestingMavenTestUtils testingTestUtils = new ContinuousTestingMavenTestUtils();
ContinuousTestingMavenTestUtils.TestStatus results = testingTestUtils.waitForNextCompletion();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import io.quarkus.maven.it.RunAndCheckMojoTestBase;
import io.quarkus.maven.it.continuoustesting.ContinuousTestingMavenTestUtils;
import io.quarkus.test.devmode.util.DevModeTestUtils;

/**
* Because Pact uses Kotlin under the covers, we see different behaviour
Expand All @@ -34,7 +33,7 @@ protected void runAndCheck(boolean performCompile, String... options)
throws MavenInvocationException, FileNotFoundException {
run(performCompile, options);

String resp = DevModeTestUtils.getHttpResponse();
String resp = devModeClient.getHttpResponse();

assertThat(resp).containsIgnoringCase("ready").containsIgnoringCase("application")
.containsIgnoringCase("1.0-SNAPSHOT");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import io.quarkus.maven.it.RunAndCheckMojoTestBase;
import io.quarkus.maven.it.continuoustesting.ContinuousTestingMavenTestUtils;
import io.quarkus.test.devmode.util.DevModeTestUtils;
import io.quarkus.test.devmode.util.DevModeClient;

/**
* Because Pact uses Kotlin under the covers, we see different behaviour
Expand All @@ -36,12 +36,12 @@ protected void runAndCheck(boolean performCompile, String... options)
throws MavenInvocationException, FileNotFoundException {
run(performCompile, options);

String resp = DevModeTestUtils.getHttpResponse();
String resp = devModeClient.getHttpResponse();

assertThat(resp).containsIgnoringCase("ready").containsIgnoringCase("application")
.containsIgnoringCase("1.0-SNAPSHOT");

String json = DevModeTestUtils.getHttpResponse("/alpaca");
String json = devModeClient.getHttpResponse("/alpaca");
//Minimal sense check, the tests do the heavy validation
assertThat(json).containsIgnoringCase("colour");
}
Expand All @@ -55,7 +55,7 @@ public void testThatTheTestsPassed() throws MavenInvocationException, FileNotFou
await()
.pollDelay(100, TimeUnit.MILLISECONDS)
.atMost(5, TimeUnit.SECONDS)
.until(() -> DevModeTestUtils.getHttpResponse("/alpaca").startsWith("{"));
.until(() -> new DevModeClient().getHttpResponse("/alpaca").startsWith("{"));

ContinuousTestingMavenTestUtils testingTestUtils = new ContinuousTestingMavenTestUtils();
ContinuousTestingMavenTestUtils.TestStatus results = testingTestUtils.waitForNextCompletion();
Expand Down

0 comments on commit e7602d9

Please sign in to comment.