13
13
import org .junit .jupiter .api .Test ;
14
14
15
15
import io .quarkus .maven .it .RunAndCheckMojoTestBase ;
16
- import io .quarkus .test .devmode .util .DevModeTestUtils ;
17
16
18
17
public class KotlinDevModeIT extends RunAndCheckMojoTestBase {
19
18
@@ -30,7 +29,7 @@ public void testThatTheApplicationIsReloadedOnKotlinChange() throws MavenInvocat
30
29
// Wait until we get "uuid"
31
30
await ()
32
31
.pollDelay (1 , TimeUnit .SECONDS )
33
- .atMost (1 , TimeUnit .MINUTES ).until (() -> DevModeTestUtils .getHttpResponse ("/app/hello" ).contains (uuid ));
32
+ .atMost (1 , TimeUnit .MINUTES ).until (() -> devModeTestUtils .getHttpResponse ("/app/hello" ).contains (uuid ));
34
33
35
34
await ()
36
35
.pollDelay (1 , TimeUnit .SECONDS )
@@ -42,7 +41,7 @@ public void testThatTheApplicationIsReloadedOnKotlinChange() throws MavenInvocat
42
41
// Wait until we get "carambar"
43
42
await ()
44
43
.pollDelay (1 , TimeUnit .SECONDS )
45
- .atMost (1 , TimeUnit .MINUTES ).until (() -> DevModeTestUtils .getHttpResponse ("/app/hello" ).contains ("carambar" ));
44
+ .atMost (1 , TimeUnit .MINUTES ).until (() -> devModeTestUtils .getHttpResponse ("/app/hello" ).contains ("carambar" ));
46
45
47
46
File greetingService = new File (testDir , "src/main/kotlin/org/acme/GreetingService.kt" );
48
47
String newUuid = UUID .randomUUID ().toString ();
@@ -51,7 +50,7 @@ public void testThatTheApplicationIsReloadedOnKotlinChange() throws MavenInvocat
51
50
// Wait until we get "newUuid"
52
51
await ()
53
52
.pollDelay (1 , TimeUnit .SECONDS )
54
- .atMost (1 , TimeUnit .MINUTES ).until (() -> DevModeTestUtils .getHttpResponse ("/app/hello/bean" ).contains (newUuid ));
53
+ .atMost (1 , TimeUnit .MINUTES ).until (() -> devModeTestUtils .getHttpResponse ("/app/hello/bean" ).contains (newUuid ));
55
54
}
56
55
57
56
@ Test
@@ -68,11 +67,11 @@ public void testThatTheApplicationIsReloadedOnKotlinChangeWithCustomCompilerArgs
68
67
// Wait until we get "uuid"
69
68
await ()
70
69
.pollDelay (1 , TimeUnit .SECONDS )
71
- .atMost (1 , TimeUnit .MINUTES ).until (() -> DevModeTestUtils .getHttpResponse ("/app/hello" ).contains (uuid ));
70
+ .atMost (1 , TimeUnit .MINUTES ).until (() -> devModeTestUtils .getHttpResponse ("/app/hello" ).contains (uuid ));
72
71
await ()
73
72
.pollDelay (1 , TimeUnit .SECONDS )
74
73
.atMost (1 , TimeUnit .MINUTES )
75
- .until (() -> DevModeTestUtils .getHttpResponse ("/graphql/schema.graphql" ).contains ("[Banana!]!" ));
74
+ .until (() -> devModeTestUtils .getHttpResponse ("/graphql/schema.graphql" ).contains ("[Banana!]!" ));
76
75
}
77
76
78
77
@ Test
@@ -94,7 +93,7 @@ public void testExternalKotlinReloadableArtifacts() throws Exception {
94
93
await ()
95
94
.pollDelay (100 , TimeUnit .MILLISECONDS )
96
95
.atMost (1 , TimeUnit .MINUTES )
97
- .until (() -> DevModeTestUtils .getHttpResponse ("/hello" ).contains ("Hello" ));
96
+ .until (() -> devModeTestUtils .getHttpResponse ("/hello" ).contains ("Hello" ));
98
97
99
98
final File greetingKotlin = externalJarDir .toPath ().resolve ("src" ).resolve ("main" )
100
99
.resolve ("kotlin" ).resolve ("org" ).resolve ("acme" ).resolve ("lib" )
@@ -117,7 +116,7 @@ public void testExternalKotlinReloadableArtifacts() throws Exception {
117
116
await ()
118
117
.pollDelay (100 , TimeUnit .MILLISECONDS )
119
118
.atMost (1 , TimeUnit .MINUTES )
120
- .until (() -> DevModeTestUtils .getHttpResponse ("/hello" ).contains ("Bonjour" ));
119
+ .until (() -> devModeTestUtils .getHttpResponse ("/hello" ).contains ("Bonjour" ));
121
120
122
121
// Change bonjour() method content in Greeting.kt
123
122
filter (greetingKotlin , Map .of ("Bonjour" , "Bonjour!" ));
@@ -129,6 +128,6 @@ public void testExternalKotlinReloadableArtifacts() throws Exception {
129
128
await ()
130
129
.pollDelay (100 , TimeUnit .MILLISECONDS )
131
130
.atMost (1 , TimeUnit .MINUTES )
132
- .until (() -> DevModeTestUtils .getHttpResponse ("/hello" ).contains ("BONJOUR!" ));
131
+ .until (() -> devModeTestUtils .getHttpResponse ("/hello" ).contains ("BONJOUR!" ));
133
132
}
134
133
}
0 commit comments