ko-fx/src/test/java/org/apidesign/html/kofx/KOFx.java
changeset 322 4a93f2679691
parent 309 7025177bd67e
child 358 80702021b851
     1.1 --- a/ko-fx/src/test/java/org/apidesign/html/kofx/KOFx.java	Thu Oct 10 14:02:18 2013 +0200
     1.2 +++ b/ko-fx/src/test/java/org/apidesign/html/kofx/KOFx.java	Tue Nov 05 23:06:32 2013 +0100
     1.3 @@ -20,10 +20,10 @@
     1.4   */
     1.5  package org.apidesign.html.kofx;
     1.6  
     1.7 +import java.io.Closeable;
     1.8  import java.lang.reflect.InvocationTargetException;
     1.9  import java.lang.reflect.Method;
    1.10  import javafx.application.Platform;
    1.11 -import org.apidesign.html.boot.impl.FnContext;
    1.12  import org.apidesign.html.boot.spi.Fn;
    1.13  import org.testng.ITest;
    1.14  import org.testng.annotations.Test;
    1.15 @@ -66,8 +66,7 @@
    1.16      @Override
    1.17      public synchronized void run() {
    1.18          boolean notify = true;
    1.19 -        try {
    1.20 -            FnContext.currentPresenter(p);
    1.21 +        try (Closeable a = Fn.activate(p)) {
    1.22              if (inst == null) {
    1.23                  inst = m.getDeclaringClass().newInstance();
    1.24              }
    1.25 @@ -91,7 +90,6 @@
    1.26              if (notify) {
    1.27                  notifyAll();
    1.28              }
    1.29 -            FnContext.currentPresenter(null);
    1.30          }
    1.31      }
    1.32