forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quarkusio#10906 from glefloch/fix/10631
- Loading branch information
Showing
4 changed files
with
27 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 24 additions & 24 deletions
48
integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/GrpcDevModeTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
//package io.quarkus.gradle.devmode; | ||
// | ||
//import static org.assertj.core.api.Assertions.assertThat; | ||
// | ||
//import com.google.common.collect.ImmutableMap; | ||
// // TODO: to be uncommented with #10631 | ||
//public class GrpcDevModeTest extends QuarkusDevGradleTestBase { | ||
// @Override | ||
// protected String projectDirectoryName() { | ||
// return "grpc-multi-module-project"; | ||
// } | ||
// | ||
// @Override | ||
// protected void testDevMode() throws Exception { | ||
// assertThat(getHttpResponse("/hello")).isEqualTo("hello 2"); | ||
// | ||
// replace("application/src/main/proto/devmodetest.proto", | ||
// ImmutableMap.of("TEST_ONE = 2;", "TEST_ONE = 15;")); | ||
// | ||
// Thread.sleep(1000); | ||
// | ||
// assertThat(getHttpResponse("/hello")).isEqualTo("hello 15"); | ||
// } | ||
//} | ||
package io.quarkus.gradle.devmode; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import com.google.common.collect.ImmutableMap; | ||
|
||
public class GrpcDevModeTest extends QuarkusDevGradleTestBase { | ||
@Override | ||
protected String projectDirectoryName() { | ||
return "grpc-multi-module-project"; | ||
} | ||
|
||
@Override | ||
protected void testDevMode() throws Exception { | ||
assertThat(getHttpResponse("/hello")).isEqualTo("hello 2"); | ||
|
||
replace("application/src/main/proto/devmodetest.proto", | ||
ImmutableMap.of("TEST_ONE = 2;", "TEST_ONE = 15;")); | ||
|
||
Thread.sleep(1000); | ||
|
||
assertThat(getHttpResponse("/hello")).isEqualTo("hello 15"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters