continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r225223 - /maven/continuum/branches/trygvis-test/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
Date Tue, 26 Jul 2005 03:03:07 GMT
Author: trygvis
Date: Mon Jul 25 20:03:04 2005
New Revision: 225223

URL: http://svn.apache.org/viewcvs?rev=225223&view=rev
Log:
o Make sure that the caught exception's case is of the expected type.

Modified:
    maven/continuum/branches/trygvis-test/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java

Modified: maven/continuum/branches/trygvis-test/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/trygvis-test/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java?rev=225223&r1=225222&r2=225223&view=diff
==============================================================================
--- maven/continuum/branches/trygvis-test/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
(original)
+++ maven/continuum/branches/trygvis-test/continuum-core-it/src/test/java/org/apache/maven/continuum/it/AbstractIntegrationTest.java
Mon Jul 25 20:03:04 2005
@@ -36,8 +36,10 @@
 import org.apache.maven.continuum.xmlrpc.XmlRpcHelper;
 import org.apache.maven.continuum.Continuum;
 import org.apache.maven.continuum.AbstractContinuumTest;
+import org.apache.maven.continuum.ContinuumException;
 import org.apache.maven.continuum.configuration.ConfigurationService;
 import org.apache.maven.continuum.store.ContinuumStore;
+import org.apache.maven.continuum.store.ContinuumObjectNotFoundException;
 import org.apache.maven.continuum.scm.ScmResult;
 import org.apache.maven.continuum.scm.ScmFile;
 import org.apache.maven.continuum.project.ContinuumProject;
@@ -62,7 +64,7 @@
 public abstract class AbstractIntegrationTest
     extends PlexusTestCase
 {
-    private final static DateFormat progressDateFormat = new SimpleDateFormat( "yyyy.MM.dd
HH:mm:ss" );
+    private static final DateFormat progressDateFormat = new SimpleDateFormat( "yyyy.MM.dd
HH:mm:ss" );
 
     private Date startTime;
 
@@ -436,11 +438,11 @@
         {
             getContinuum().getProject( projectId );
 
-            fail( "Expected exception after removing project '" + projectId + "'." );
+            fail( "Expected ContinuumObjectNotFoundException after removing project '" +
projectId + "'." );
         }
-        catch ( Exception e )
+        catch ( ContinuumException t )
         {
-            // expected
+            assertTrue( t.getCause() instanceof ContinuumObjectNotFoundException );
         }
     }
 



Mime
View raw message