You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ps...@apache.org on 2005/12/10 22:22:31 UTC
svn commit: r355783 -
/jakarta/commons/proper/math/branches/MATH_1_1/src/test/org/apache/commons/math/random/RandomDataTest.java
Author: psteitz
Date: Sat Dec 10 13:22:28 2005
New Revision: 355783
URL: http://svn.apache.org/viewcvs?rev=355783&view=rev
Log:
Removed test dependency on SUN security provider.
Reported (and patched) by Rahul Akolkar.
Bz #37862
Modified:
jakarta/commons/proper/math/branches/MATH_1_1/src/test/org/apache/commons/math/random/RandomDataTest.java
Modified: jakarta/commons/proper/math/branches/MATH_1_1/src/test/org/apache/commons/math/random/RandomDataTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/branches/MATH_1_1/src/test/org/apache/commons/math/random/RandomDataTest.java?rev=355783&r1=355782&r2=355783&view=diff
==============================================================================
--- jakarta/commons/proper/math/branches/MATH_1_1/src/test/org/apache/commons/math/random/RandomDataTest.java (original)
+++ jakarta/commons/proper/math/branches/MATH_1_1/src/test/org/apache/commons/math/random/RandomDataTest.java Sat Dec 10 13:22:28 2005
@@ -420,13 +420,19 @@
/* remove this test back soon,
* since it takes about 4 seconds */
-
- randomData.setSecureAlgorithm("SHA1PRNG","SUN");
+
+ try {
+ randomData.setSecureAlgorithm("SHA1PRNG","SUN");
+ } catch (NoSuchProviderException ex) {
+ ;
+ }
assertTrue("different seeds",
!hex.equals(randomData.nextSecureHexString(40)));
try {
randomData.setSecureAlgorithm("NOSUCHTHING","SUN");
fail("expecting NoSuchAlgorithmException");
+ } catch (NoSuchProviderException ex) {
+ ;
} catch (NoSuchAlgorithmException ex) {
;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: svn commit: r355783 - /jakarta/commons/proper/math/branches/MATH_1_1/src/test/org/apache/commons/math/random/RandomDataTest.java
Posted by Rahul Akolkar <ra...@gmail.com>.
On 12/10/05, psteitz@apache.org <ps...@apache.org> wrote:
> Author: psteitz
> Date: Sat Dec 10 13:22:28 2005
> New Revision: 355783
>
> URL: http://svn.apache.org/viewcvs?rev=355783&view=rev
> Log:
> Removed test dependency on SUN security provider.
> Reported (and patched) by Rahul Akolkar.
> Bz #37862
>
<snip/>
Sorry Phil, I did intend to file the BZ ticket. Should have done it immediately.
-Rahul
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org