You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2015/12/24 18:31:49 UTC

[jira] [Commented] (MATH-1301) Create a test class for "JDKRandomGenerator"

    [ https://issues.apache.org/jira/browse/MATH-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15071146#comment-15071146 ] 

Gilles commented on MATH-1301:
------------------------------

commit 9a87c766bb3137a50656871e5dee5a309543bc7d contains the code update!

> Create a test class for "JDKRandomGenerator"
> --------------------------------------------
>
>                 Key: MATH-1301
>                 URL: https://issues.apache.org/jira/browse/MATH-1301
>             Project: Commons Math
>          Issue Type: Test
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 4.0
>
>
> {{JDKRandomGenerator}} has no unit test.
> Creating a test class that inherits from {{RandomGeneratorAbstractTest}} will require to handle the  exceptions thrown from two of its test methods:
> * testNextIntNeg
> * testNextIntIAE2
> Those expect {{MathIllegalArgumentException}} whereas {{JDKRandomGenerator}} would throw {{IllegalArgumentException}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)