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

Tilman Hausherr commented on PDFBOX-2034:
-----------------------------------------

Did some DRY refactoring, in rev 1591375 for the trunk and rev 1591376 for the 
1.8 branch.

> TestFilters is non-deterministic
> --------------------------------
>
>                 Key: PDFBOX-2034
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2034
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 1.8.5, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>              Labels: LZW
>
> This is a follow-up of PDFBOX-1977, which was created by John.
> ====
> TestFilters uses Random().nextLong() to generate a seed for random data, 
> which means that it is non-determinate. Depending on the seed value, the test 
> may fail or succeed.
> ====
> So what we need is:
> - a set of [deterministic 
> tests|http://martinfowler.com/articles/nonDeterminism.html]
> - a set of non-deterministic tests
> To see why, see the discussion in PDFBOX-1977.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to