Qualify Archiver reader states in the IntelliJ designer

This commit is contained in:
2026-11-25 14:35:18 +01:00
parent 40be143e31
commit 311eaa6812
6 changed files with 341 additions and 13 deletions
@@ -22,7 +22,7 @@ public final class DocumentTabsTargetProbe {
Thread.ofPlatform().daemon().start(() -> Probe.run(Path.of(dir)));
}
private static final class Probe {
static final class Probe {
private static <T> T fx(Callable<T> task) throws Exception {
var future = new FutureTask<>(task);
Platform.runLater(future);
@@ -181,7 +181,7 @@ public final class DocumentTabsTargetProbe {
popup(input, "Beleg geprüft", dir.resolve("rechnung-tab-tags.png"));
}
private static Node select(TabPane group, String name) throws Exception {
static Node select(TabPane group, String name) throws Exception {
var tab =
fx(
() -> {
@@ -199,7 +199,7 @@ public final class DocumentTabsTargetProbe {
return fx(tab::getContent);
}
private static void checkHtml(Node root, String heading, String text) throws Exception {
static void checkHtml(Node root, String heading, String text) throws Exception {
await(
heading,
() -> {
@@ -243,13 +243,13 @@ public final class DocumentTabsTargetProbe {
return named;
}
private static void requireChips(Node root, String... expected) throws Exception {
static void requireChips(Node root, String... expected) throws Exception {
var actual = chips(root).keySet();
if (!actual.equals(Set.of(expected)))
throw new AssertionError("Assigned tags " + actual + " vs " + Arrays.toString(expected));
}
private static Button removeButton(Node root, String text) throws Exception {
static Button removeButton(Node root, String text) throws Exception {
return (Button)
Objects.requireNonNull(chips(root).get(text), text).lookup(".tag-chip-remove");
}