Update of /cvsroot/hibernate/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24167/src/test/org/hibernate/tool/hbm2x
Modified Files:
Hbm2SeamTest.java
Log Message:
make seam report code generation to the artifact collector
Index: Hbm2SeamTest.java
===================================================================
RCS file: /cvsroot/hibernate/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/Hbm2SeamTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Hbm2SeamTest.java 25 Jan 2006 15:59:28 -0000 1.3
+++ Hbm2SeamTest.java 7 Feb 2006 20:22:46 -0000 1.4
@@ -15,6 +15,8 @@
*/
public class Hbm2SeamTest extends NonReflectiveTestCase {
+ private ArtifactCollector artifactCollector;
+
public Hbm2SeamTest(String name) {
super( name, "hbm2seamoutput" );
}
@@ -25,6 +27,8 @@
SeamExporter exporter = new SeamExporter(getCfg(), getOutputDir() );
exporter.start();
+ artifactCollector = exporter.getArtifactCollector();
+
}
protected void tearDown() throws Exception {
@@ -35,7 +39,11 @@
assertFileAndExists(new File(getOutputDir(), "src/org/hibernate/tool/hbm2x/Article.java") );
assertFileAndExists(new File(getOutputDir(), "src/org/hibernate/tool/hbm2x/Author.java") );
assertFileAndExists(new File(getOutputDir(), "resources/jsp/editAuthor.jsp") );
- assertFileAndExists(new File(getOutputDir(), "build.xml") );
+ assertFileAndExists(new File(getOutputDir(), "build.xml") );
+ }
+
+ public void testArtifactCollection() {
+ assertEquals(artifactCollector.getFileCount("java"), 2);
}
|