Disable to GC tests as they cause random problems in the FX launcher
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 24 Apr 2016 06:51:32 +0200
changeset 19333c9060276b2d
parent 1932 a8b9a7c2f3b5
child 1934 6d578ccd680a
Disable to GC tests as they cause random problems in the FX launcher
ko/fx/src/test/java/org/apidesign/bck2brwsr/kofx/JavaScriptBodyFXBrwsrTest.java
ko/fx/src/test/java/org/apidesign/bck2brwsr/kofx/KnockoutFXTest.java
     1.1 --- a/ko/fx/src/test/java/org/apidesign/bck2brwsr/kofx/JavaScriptBodyFXBrwsrTest.java	Sat Apr 23 05:43:17 2016 +0200
     1.2 +++ b/ko/fx/src/test/java/org/apidesign/bck2brwsr/kofx/JavaScriptBodyFXBrwsrTest.java	Sun Apr 24 06:51:32 2016 +0200
     1.3 @@ -30,7 +30,17 @@
     1.4      @Factory public static Object[] create() {
     1.5          return VMTest.newTests().
     1.6              withLaunchers("fxbrwsr").
     1.7 -            withClasses(testClasses()).
     1.8 +            withClasses(filterTestClasses()).
     1.9              withTestAnnotation(KOTest.class).build();
    1.10      }
    1.11 +    
    1.12 +    private static Class[] filterTestClasses() {
    1.13 +        Class[] arr = testClasses();
    1.14 +        for (int i = 0; i < arr.length; i++) {
    1.15 +            if (arr[i].getName().contains("GCBodyTest")) {
    1.16 +                arr[i] = Object.class;
    1.17 +            }
    1.18 +        }
    1.19 +        return arr;
    1.20 +    }
    1.21  }
     2.1 --- a/ko/fx/src/test/java/org/apidesign/bck2brwsr/kofx/KnockoutFXTest.java	Sat Apr 23 05:43:17 2016 +0200
     2.2 +++ b/ko/fx/src/test/java/org/apidesign/bck2brwsr/kofx/KnockoutFXTest.java	Sun Apr 24 06:51:32 2016 +0200
     2.3 @@ -52,11 +52,21 @@
     2.4  
     2.5      @Factory public static Object[] compatibilityTests() {
     2.6          return VMTest.newTests().
     2.7 -            withClasses(testClasses()).
     2.8 +            withClasses(filterTestClasses()).
     2.9              withTestAnnotation(KOTest.class).
    2.10              withLaunchers("fxbrwsr").build();
    2.11      }
    2.12 -
    2.13 +    
    2.14 +    private static Class[] filterTestClasses() {
    2.15 +        Class[] arr = testClasses();
    2.16 +        for (int i = 0; i < arr.length; i++) {
    2.17 +            if (arr[i].getName().contains("GCBodyTest")) {
    2.18 +                arr[i] = Object.class;
    2.19 +            }
    2.20 +        }
    2.21 +        return arr;
    2.22 +    }
    2.23 +    
    2.24      @Override
    2.25      public BrwsrCtx createContext() {
    2.26          final Fn.Presenter p = Fn.activePresenter();