commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1200394 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java
Date Thu, 10 Nov 2011 15:54:48 GMT
Author: sebb
Date: Thu Nov 10 15:54:47 2011
New Revision: 1200394

URL: http://svn.apache.org/viewvc?rev=1200394&view=rev
Log:
Need to fail if the exception is not generated

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java?rev=1200394&r1=1200393&r2=1200394&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java
Thu Nov 10 15:54:47 2011
@@ -96,6 +96,7 @@ public class StableRandomGeneratorTest e
         try {
             new StableRandomGenerator(rg,
                     -1.0, 0.0);
+            fail("Expected OutOfRangeException");
         } catch (OutOfRangeException e) {
             assertEquals(-1.0, e.getArgument());
         }
@@ -105,6 +106,7 @@ public class StableRandomGeneratorTest e
         try {
             new StableRandomGenerator(rg,
                     3.0, 0.0);
+            fail("Expected OutOfRangeException");
         } catch (OutOfRangeException e) {
             assertEquals(3.0, e.getArgument());
         }
@@ -114,6 +116,7 @@ public class StableRandomGeneratorTest e
         try {
             new StableRandomGenerator(rg,
                     1.0, -2.0);
+            fail("Expected OutOfRangeException");
         } catch (OutOfRangeException e) {
             assertEquals(-2.0, e.getArgument());
         }
@@ -123,6 +126,7 @@ public class StableRandomGeneratorTest e
         try {
             new StableRandomGenerator(rg,
                     1.0, 2.0);
+            fail("Expected OutOfRangeException");
         } catch (OutOfRangeException e) {
             assertEquals(2.0, e.getArgument());
         }



Mime
View raw message