assertj / assertj/assertj-swing
Thread synchro
- 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
Assessment
This issue has not been assessed yet.