You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: roq-data/deployment/src/test/java/io/quarkiverse/roq/data/test/RoqDataInjectableBeanLookingCustomLocationTest.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,18 @@ public class RoqDataInjectableBeanLookingCustomLocationTest {
27
27
@Named("bar")
28
28
JsonObjectbar;
29
29
30
+
@Inject
31
+
@Named("dir/bar")
32
+
JsonObjectdirBar;
33
+
34
+
@Inject
35
+
@Named("dir/foo")
36
+
JsonObjectdirFoo;
37
+
38
+
@Inject
39
+
@Named("dir")
40
+
JsonObjectdir;
41
+
30
42
@Inject
31
43
@Named("baz")
32
44
JsonObjectbaz;
@@ -51,4 +63,12 @@ public void baz() {
51
63
Assertions.assertEquals("Super Heroes from Yml custom", fromYml);
52
64
}
53
65
66
+
@Test
67
+
publicvoiddir() {
68
+
Assertions.assertEquals("Super Heroes Foo from Yml in dir", dirFoo.getString("name"));
69
+
Assertions.assertEquals("Super Heroes Bar from Yaml in dir", dirBar.getString("name"));
70
+
Assertions.assertEquals("Super Heroes Foo from Yml in dir", dir.getJsonObject("foo").getString("name"));
71
+
Assertions.assertEquals("Super Heroes Bar from Yaml in dir", dir.getJsonObject("bar").getString("name"));
0 commit comments