Tests should pass when invoked repeatedly
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 01:49:57 +0100
changeset 171620ea1a1b73ae
parent 1715 dcd26599413f
child 1717 f5200d90b730
Tests should pass when invoked repeatedly
rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/compact/tck/JFXIssuesTest.java
     1.1 --- a/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/compact/tck/JFXIssuesTest.java	Fri Sep 26 16:27:58 2014 +0200
     1.2 +++ b/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/compact/tck/JFXIssuesTest.java	Thu Oct 30 01:49:57 2014 +0100
     1.3 @@ -62,12 +62,18 @@
     1.4          return l1 == l2;
     1.5      }
     1.6  
     1.7 -    private static long val = 1238078409318L;
     1.8 +    private static final long val = 1238078409318L;
     1.9      
    1.10      @Compare public int valueConvertedToString() {
    1.11 -        return (int) val++;
    1.12 +        long[] arr = { val };
    1.13 +        return dumpValue(arr);
    1.14      }
    1.15      
    1.16 +    int dumpValue(long[] val) {
    1.17 +        return (int) val[0]++;
    1.18 +    }
    1.19 +    
    1.20 +    
    1.21      @Compare public boolean roundOnFloat() {
    1.22          final float f = System.currentTimeMillis() / 1.1f;
    1.23          int l1 = Math.round(f);