You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by pt...@apache.org on 2009/01/06 15:23:33 UTC
svn commit: r731950 -
/jakarta/cactus/trunk/integration/maven2/src/test/java/org/apache/cactus/integration/maven2/test/TestCactifyWarMojo.java
Author: ptahchiev
Date: Tue Jan 6 06:23:31 2009
New Revision: 731950
URL: http://svn.apache.org/viewvc?rev=731950&view=rev
Log:
Added artifactStub and CactifyMavenProjectStub to avoid the missing project when testing the war and ear mojos.
Modified:
jakarta/cactus/trunk/integration/maven2/src/test/java/org/apache/cactus/integration/maven2/test/TestCactifyWarMojo.java
Modified: jakarta/cactus/trunk/integration/maven2/src/test/java/org/apache/cactus/integration/maven2/test/TestCactifyWarMojo.java
URL: http://svn.apache.org/viewvc/jakarta/cactus/trunk/integration/maven2/src/test/java/org/apache/cactus/integration/maven2/test/TestCactifyWarMojo.java?rev=731950&r1=731949&r2=731950&view=diff
==============================================================================
--- jakarta/cactus/trunk/integration/maven2/src/test/java/org/apache/cactus/integration/maven2/test/TestCactifyWarMojo.java (original)
+++ jakarta/cactus/trunk/integration/maven2/src/test/java/org/apache/cactus/integration/maven2/test/TestCactifyWarMojo.java Tue Jan 6 06:23:31 2009
@@ -105,8 +105,7 @@
// {
// File testPom = new File(getBasedir(), "target/test-classes/unit/"
// + "cactify-test-empty-src-file/plugin-config.xml");
-// CactifyWarMojo mojo = (CactifyWarMojo) lookupMojo("cactifywar",
-// testPom);
+// CactifyWarMojo mojo = (CactifyWarMojo) lookupMojo("cactifywar", testPom);
// assertNotNull(mojo);
// try
// {
@@ -161,11 +160,11 @@
}
}
- /**
- * Test that if we specify wrong srcFile parameter appropriate
- * exception is thrown.
- * @throws Exception
- */
+// /**
+// * Test that if we specify wrong srcFile parameter appropriate
+// * exception is thrown.
+// * @throws Exception
+// */
// public void testWrongDestFileParameterPassed() throws Exception
// {
// File testPom = new File(getBasedir(), "target/test-classes/unit/"
@@ -179,8 +178,8 @@
// }
// catch(MojoExecutionException mx)
// {
-// mx.printStackTrace();
-// //assertEquals("Failed to get the original web.xml", mx.getMessage());
+// //mx.printStackTrace();
+// assertEquals("Failed to get the original web.xml", mx.getMessage());
// }
// }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org