Skip to content

Commit 422315b

Browse files
committed
HBX-3128: Avoid use of Maven invoker plugin while performing functional testing
- Add a test for no-generics Signed-off-by: Koen Aers <[email protected]>
1 parent c3accb8 commit 422315b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ private void prepareProject(String projectName) throws Exception {
8080
createHibernatePropertiesFile(projectFolder);
8181
}
8282

83+
@Test
84+
public void testNoGenerics() throws Exception {
85+
databaseCreationScript = new String[] {
86+
"create table PERSON (ID int not null, NAME varchar(20), primary key (ID))",
87+
"create table ITEM (ID int not null, NAME varchar(20), OWNER_ID int not null, " +
88+
" primary key (ID), foreign key (OWNER_ID) references PERSON(ID))"
89+
};
90+
prepareProject("hbm2java/no-generics");
91+
assertNotGeneratedYet();
92+
runGenerateSources();
93+
assertGeneratedDoesNotContain("Set<Item>");
94+
}
95+
8396
private void createHibernatePropertiesFile(File projectFolder) throws Exception {
8497
File projectResourcesFolder = new File(projectFolder, "src/main/resources");
8598
projectResourcesFolder.mkdirs();

0 commit comments

Comments
 (0)