mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-03 22:57:17 +00:00
added tray icon, refactored dagger component graph:
singleton -> tray -> fxapplication -> mainwindow
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user