added tray icon, refactored dagger component graph:

singleton -> tray -> fxapplication -> mainwindow
This commit is contained in:
Sebastian Stenzel
2019-07-29 12:38:24 +02:00
parent 4931e6707a
commit 10e842e457
35 changed files with 340 additions and 56 deletions
@@ -0,0 +1,27 @@
package org.cryptomator.ui.controls;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.time.Duration;
import java.util.concurrent.CountDownLatch;
public class Foo {
@Test
public void foo() {
StringProperty str = new SimpleStringProperty("foo");
CountDownLatch done = new CountDownLatch(1);
str.addListener(observable -> {
Assertions.assertEquals("bar", str.get());
done.countDown();
});
str.set("bar");
Assertions.assertTimeoutPreemptively(Duration.ofMillis(100), () -> {
done.await();
});
}
}