You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2009/02/21 21:02:59 UTC

svn commit: r746579 - /commons/proper/math/trunk/src/test/org/apache/commons/math/linear/BigMatrixImplTest.java

Author: luc
Date: Sat Feb 21 20:02:59 2009
New Revision: 746579

URL: http://svn.apache.org/viewvc?rev=746579&view=rev
Log:
fixed exception type in a test

Modified:
    commons/proper/math/trunk/src/test/org/apache/commons/math/linear/BigMatrixImplTest.java

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/linear/BigMatrixImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/linear/BigMatrixImplTest.java?rev=746579&r1=746578&r2=746579&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/linear/BigMatrixImplTest.java (original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/linear/BigMatrixImplTest.java Sat Feb 21 20:02:59 2009
@@ -22,6 +22,8 @@
 
 import java.math.BigDecimal;
 
+import org.apache.commons.math.linear.decomposition.NonSquareMatrixException;
+
 /**
  * Test cases for the {@link BigMatrixImpl} class.
  *
@@ -409,8 +411,8 @@
         m = new BigMatrixImpl(testData2);
         try {
             m.getTrace().doubleValue();
-            fail("Expecting illegalArgumentException");
-        } catch (IllegalArgumentException ex) {
+            fail("Expecting NonSquareMatrixException");
+        } catch (NonSquareMatrixException ex) {
             ;
         }      
     }