Skip to content

Commit 812b1e8

Browse files
committed
HBX-3050: Add a functional tests for the Maven generateJava mojo guarding the sanity of the 5 minute tutorial
- add System.out for logging and make test fail Signed-off-by: Koen Aers <[email protected]>
1 parent 8143dad commit 812b1e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

maven/src/functionalTest/java/org/hibernate/tool/maven/ExamplesTestIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ public void test5MinuteTutorial() throws Exception {
4040
new MavenCli().doMain(
4141
new String[]{"generate-sources"},
4242
projectFolder.getAbsolutePath(),
43-
null,
44-
null);
43+
System.out,
44+
System.err);
4545
assertTrue(generatedPersonFile.exists());
4646
String personFileContents = new String(Files.readAllBytes(generatedPersonFile.toPath()));
4747
assertTrue(personFileContents.contains("public class Person"));
48+
fail();
4849
}
4950

5051
private File prepareProjectFolder(String projectName) throws Exception {

0 commit comments

Comments
 (0)