Skip to content

Commit

Permalink
updates from Dmitry A
Browse files Browse the repository at this point in the history
  • Loading branch information
ljamen committed May 14, 2021
1 parent 45197b0 commit d39f69a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/mp/guides/38_testing_junit5.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ The test is only useful if it invokes the server and verifies the result. To sup
[source,java]
.Updated Class with webTarget
----
import static org.junit.jupiter.api.Assertions.assertEquals;@HelidonTest
import static org.junit.jupiter.api.Assertions.assertEquals;
@HelidonTest
class GreetTest {
@Inject
WebTarget webTarget;
Expand Down Expand Up @@ -227,14 +229,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
@DisableDiscovery
@AddExtension(ConfigCdiExtension.class)
@AddBean(GreetTest.ConfiguredBean.class)
@AddConfig(key = "test.message", value = "Hello Blog!")
@AddConfig(key = "test.message", value = "Hello Guide!")
class GreetTest {
@Inject
ConfiguredBean bean;
@Test
void testBean() {
assertEquals("Hello Blog!", bean.message());
assertEquals("Hello Guide!", bean.message());
}
public static class ConfiguredBean {
Expand Down

0 comments on commit d39f69a

Please sign in to comment.