commons-issues mailing list archives

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

     [ https://issues.apache.org/jira/browse/MATH-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gilles resolved MATH-1301.
--------------------------
    Resolution: Fixed

Commit 2ab17f529d07c1f618ea08d968b2fdf3a382a792 (master)

> 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