modules/base/src/test/java/javafx/binding/BindingsCreateBindingTest.java

Print this page
rev 8094 : RT-27128

@@ -40,11 +40,10 @@
 import javafx.beans.property.SimpleObjectProperty;
 import javafx.beans.property.SimpleStringProperty;
 import com.sun.javafx.binding.ErrorLoggingUtiltity;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 
 import static org.junit.Assert.*;

@@ -88,16 +87,12 @@
         this.value0 = value0;
         this.value1 = value1;
         this.defaultValue = defaultValue;
     }
 
-    @Ignore("RT-27128")
     @Test
     public void testNoDependencies() {
-        synchronized (log) {
-            log.reset();
-
             // func returns value0, no dependencies specified
             final Callable<T> func0 = () -> value0;
             final Binding<T> binding0 = f.create(func0);
 
             f.check(value0, binding0.getValue());

@@ -117,15 +112,14 @@
                 throw new Exception();
             };
             final Binding<T> binding2 = f.create(func2, new Observable [0]);
 
             f.check(defaultValue, binding2.getValue());
-            log.check(0, "WARNING", 1, "Exception");
+        log.check(java.util.logging.Level.WARNING, Exception.class);
             assertTrue(binding2.getDependencies().isEmpty());
             binding2.dispose();
         }
-    }
 
     @Test
     public void testOneDependency() {
         final Callable<T> func = () -> p0.getValue();
         final Binding<T> binding = f.create(func, p0);