continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r428192 - in /maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action: ActionStub.java ContinuumActionLoggingTest.java
Date Wed, 02 Aug 2006 23:35:24 GMT
Author: carlos
Date: Wed Aug  2 16:35:24 2006
New Revision: 428192

URL: http://svn.apache.org/viewvc?rev=428192&view=rev
Log:
Fix exception swallowing and javadocs

Modified:
    maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ActionStub.java
    maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ContinuumActionLoggingTest.java

Modified: maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ActionStub.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ActionStub.java?rev=428192&r1=428191&r2=428192&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ActionStub.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ActionStub.java
Wed Aug  2 16:35:24 2006
@@ -21,9 +21,8 @@
 /**
  * TestAction:
  *
- * @author: jesse
- * @date: Jul 13, 2006
- * @version: $ID$
+ * @author jesse
+ * @version $Id$
  */
 public class ActionStub
     extends PlexusActionSupport

Modified: maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ContinuumActionLoggingTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ContinuumActionLoggingTest.java?rev=428192&r1=428191&r2=428192&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ContinuumActionLoggingTest.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/test/java/org/apache/maven/continuum/web/action/ContinuumActionLoggingTest.java
Wed Aug  2 16:35:24 2006
@@ -28,9 +28,8 @@
 /**
  * TestContinuumActionLogging:
  *
- * @author: jesse
- * @date: Jul 13, 2006
- * @version: $ID$
+ * @author jesse
+ * @version $Id$
  */
 public class ContinuumActionLoggingTest
     extends PlexusTestCase
@@ -56,21 +55,15 @@
 
 
     public void testActionLogging()
+        throws Exception
     {
-        try
-        {
-            ActionStub testAction = (ActionStub) lookup( "com.opensymphony.xwork.Action",
"testAction" );
-            String testString = "action test string";
-            testAction.setTestString( testString );
-
-            testAction.execute();
-
-            assertTrue( testOutput.toString().indexOf( testString ) != -1 );
-        }
-        catch ( Exception e )
-        {
-            fail( e.getMessage() );
-        }
+        ActionStub testAction = (ActionStub) lookup( "com.opensymphony.xwork.Action", "testAction"
);
+        String testString = "action test string";
+        testAction.setTestString( testString );
+
+        testAction.execute();
+
+        assertTrue( testOutput.toString().indexOf( testString ) != -1 );
     }
 
 



Mime
View raw message