commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1301) Create a test class for "JDKRandomGenerator"
Date Thu, 24 Dec 2015 17:31:49 GMT

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

Mime
View raw message