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

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

Commit c7f7da754a911302dcaa6935be6fded84e1ac348 makes {{JDKRandomGenerator}} 
delegate to (rather than inherit from) {{java.util.Random}}.

> 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)

Reply via email to