Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Assertj-Swing: GuiActionRunner - numRetries/waitBetweenRetries

Open
#204 10 comments 0 reactions 1 assignee View on GitHub

@andyhayder is already working on this.

Since May 16, 2017.

Assessment

This issue has not been assessed yet.

Description

Hi,
unfortunately i miss following feature. I have the problem that some actions creating a new GUI form/element runs a lot of time (SwingWorker, DynamicTreeNode(s)). So i implemented following workaround, which works fine.

Example
public static void execute(@Nonnull GuiTask task) {
if (!executeInEDT) {
executeInCurrentThread(task);
return;
}
for (int i = 0; i < # ConfigAssertJ.numRetries - 1; i++) {
run(task);
if (task.catchedException() == null) {
break;
}
// Error -> retry
System.out.println("Retry " + task);
try {
Thread.sleep(ConfigAssertJ.waitBetweenRetries);
} catch (Exception e) {
// TODO: handle exception
}
}
rethrowCaughtExceptionIn(task);
}

Dominant language
Java
Stars
121
Forks
52
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from assertj/assertj-swing

All issues in assertj/assertj-swing

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.