File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
gradle/plugin/src/functionalTest/java/org/hibernate/tool/gradle/java Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ private void verifyProject() throws Exception {
136136 String generatedPersonJavaFileContents = new String (
137137 Files .readAllBytes (generatedPersonJavaFile .toPath ()));
138138 assertTrue (generatedPersonJavaFileContents .contains ("import jakarta.persistence.Entity;" ));
139+ assertTrue (generatedPersonJavaFileContents .contains ("public class Person " ));
139140 }
140141
141142 private void addHibernateToolsPluginLine (StringBuffer gradleBuildFileContents ) {
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ private void verifyProject() throws Exception {
137137 String generatedPersonJavaFileContents = new String (
138138 Files .readAllBytes (generatedPersonJavaFile .toPath ()));
139139 assertFalse (generatedPersonJavaFileContents .contains ("import jakarta.persistence.Entity;" ));
140+ assertTrue (generatedPersonJavaFileContents .contains ("public class Person " ));
140141 }
141142
142143 private void addHibernateToolsPluginLine (StringBuffer gradleBuildFileContents ) {
You can’t perform that action at this time.
0 commit comments