assertj / assertj/assertj-swing

Thread synchro

Open
#258 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
121
Forks
52
PR merge metrics
No merged PRs in 30d

Description

Hello!

the question is little stupid, but unfortunality I don't have any experiences in threads.
I'm testing a complex program and call the main-class with:

```
Thread thread = new Thread() {
public void run() {
ApplicationLauncher withArgs = application(Main.class).withArgs("option1=on");
withArgs.start();
}
};
thread.start();
```

When I don't to this in an extra thread the next inputs via robot() won't get executed.
However, I inserted multipled Thread.sleep()-methods, because the program takes a while to start, and without them the input are too early.

All in all I'm unsure if I do aything extremly wrong here - could anyone give me a hint?

Would be very nice!
Thanks

Hans

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.