Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ant/src/it/java/org/hibernate/tool/ant/ExamplesTestIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ public void testClasspath() throws Exception {
}
}

@Test
public void testConfiguration() throws Exception {
File buildFile = new File(baseFolder, "configuration/build.xml");
Project project = createProject(buildFile);
assertNotNull(project);
File cfgXmlFile = new File(baseFolder, "configuration/generated/hibernate.cfg.xml");
assertFalse(cfgXmlFile.exists());
project.executeTarget("reveng");
assertTrue(cfgXmlFile.exists());
}

private Project createProject(File buildXmlFile) throws Exception {
Project result = new Project();
ProjectHelper projectHelper = ProjectHelper.getProjectHelper();
Expand Down