Skip to content

Commit bf18915

Browse files
committed
[DO NOT MERGE] Qute: dev mode - debug a problem with no-restart-template
1 parent 3326e64 commit bf18915

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/devmode/NoRestartRoute.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import java.util.UUID;
44

55
import jakarta.annotation.PostConstruct;
6-
import jakarta.inject.Inject;
76
import jakarta.inject.Singleton;
87

8+
import io.quarkus.qute.Location;
99
import io.quarkus.qute.Template;
1010
import io.quarkus.vertx.web.Route;
1111
import io.vertx.ext.web.RoutingContext;
@@ -15,7 +15,7 @@ public class NoRestartRoute {
1515

1616
private String id;
1717

18-
@Inject
18+
@Location("foo/norestart")
1919
Template norestart;
2020

2121
@Route(path = "norestart")

extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/devmode/NoRestartTemplatesDevModeTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public class NoRestartTemplatesDevModeTest {
1919
.addClass(NoRestartRoute.class)
2020
.addAsResource(new StringAsset(
2121
"Hello {foo}!"),
22-
"templates/norestart.html")
22+
"templates/foo/norestart.html")
2323
.addAsResource(new StringAsset(
24-
"quarkus.qute.dev-mode.no-restart-templates=templates/norestart.html"),
24+
"quarkus.qute.dev-mode.no-restart-templates=templates/foo/norestart.html"),
2525
"application.properties"));
2626

2727
@Test
@@ -32,7 +32,7 @@ public void testNoRestartTemplates() {
3232
String val = resp.getBody().asString();
3333
assertTrue(val.startsWith("Hello "));
3434

35-
config.modifyResourceFile("templates/norestart.html", t -> t.concat("!!"));
35+
config.modifyResourceFile("templates/foo/norestart.html", t -> t.concat("!!"));
3636

3737
resp = given().get("norestart");
3838
resp.then().statusCode(200);

0 commit comments

Comments
 (0)