db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r511979 - /db/torque/maven2-plugin/trunk/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java
Date Mon, 26 Feb 2007 20:04:53 GMT
Author: tfischer
Date: Mon Feb 26 12:04:52 2007
New Revision: 511979

URL: http://svn.apache.org/viewvc?view=rev&rev=511979
Log:
Fixed bug in testcase for maven 2 plugin

Modified:
    db/torque/maven2-plugin/trunk/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java

Modified: db/torque/maven2-plugin/trunk/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java
URL: http://svn.apache.org/viewvc/db/torque/maven2-plugin/trunk/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java?view=diff&rev=511979&r1=511978&r2=511979
==============================================================================
--- db/torque/maven2-plugin/trunk/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java
(original)
+++ db/torque/maven2-plugin/trunk/src/test/java/org/apache/torque/mojo/TorqueOMMojoTest.java
Mon Feb 26 12:04:52 2007
@@ -113,62 +113,65 @@
 
         instance.execute();
 
-        String generatedSourcesPackageDir
+        String generatedSourcesBasePackageDir
                 = "generated-sources/torque/org/apache/torque/mojo/test/";
 
+        String generatedSourcesPackageDir
+                = "src/main/java/org/apache/torque/mojo/test/";
+
         assertTrue(
                 "BaseTestTable1.java must exist",
                 new File(
                         mavenProject.getBuild().getDirectory(),
-                        generatedSourcesPackageDir + "BaseTestTable1.java")
+                        generatedSourcesBasePackageDir + "BaseTestTable1.java")
                     .exists());
 
         assertTrue(
                 "BaseTestTable2.java must exist",
                 new File(
                         mavenProject.getBuild().getDirectory(),
-                        generatedSourcesPackageDir + "BaseTestTable2.java")
+                        generatedSourcesBasePackageDir + "BaseTestTable2.java")
                     .exists());
 
         assertTrue(
                 "BaseTestTable1Peer.java must exist",
                 new File(
                         mavenProject.getBuild().getDirectory(),
-                        generatedSourcesPackageDir + "BaseTestTable1Peer.java")
+                        generatedSourcesBasePackageDir + "BaseTestTable1Peer.java")
                     .exists());
 
         assertTrue(
                 "BaseTestTable2Peer.java must exist",
                 new File(
                         mavenProject.getBuild().getDirectory(),
-                        generatedSourcesPackageDir + "BaseTestTable2Peer.java")
+                        generatedSourcesBasePackageDir + "BaseTestTable2Peer.java")
                     .exists());
 
         assertTrue(
                 "TestTable1.java must exist",
                 new File(
-                        mavenProject.getBuild().getDirectory(),
+                        mavenProject.getBasedir(),
                         generatedSourcesPackageDir + "TestTable1.java")
                     .exists());
 
         assertTrue(
                 "TestTable2.java must exist",
                 new File(
-                        mavenProject.getBuild().getDirectory(),
+                        mavenProject.getBasedir(),
                         generatedSourcesPackageDir + "TestTable2.java")
                     .exists());
 
         assertTrue(
                 "TestTable1Peer.java must exist",
                 new File(
-                        mavenProject.getBuild().getDirectory(),
+                        mavenProject.getBasedir(),
                         generatedSourcesPackageDir + "TestTable1Peer.java")
                     .exists());
 
         assertTrue(
                 "TestTable2Peer.java must exist",
                 new File(
-                        mavenProject.getBuild().getDirectory(),
+                        mavenProject.getBasedir(),
                         generatedSourcesPackageDir + "TestTable2Peer.java")
                     .exists());
 
@@ -176,7 +179,7 @@
                 "TestTable1MapBuilder.java must exist",
                 new File(
                         mavenProject.getBuild().getDirectory(),
-                        generatedSourcesPackageDir
+                        generatedSourcesBasePackageDir
                             + "map/TestTable1MapBuilder.java")
                     .exists());
 
@@ -184,7 +187,7 @@
                 "TestTable2MapBuilder.java must exist",
                 new File(
                         mavenProject.getBuild ().getDirectory(),
-                        generatedSourcesPackageDir
+                        generatedSourcesBasePackageDir
                             + "map/TestTable2MapBuilder.java")
                     .exists());
 



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message