Thread synchro
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reviewing the Thread that launches ApplicationLauncher and the subsequent robot() calls, focusing on how startup completion is detected. The issue mentions Thread.sleep() as the current timing workaround; done should be a reliable synchronization approach that prevents inputs from running before the application is ready.
Written by the indexing model from the issue text.
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
- Dominant language
- Java
- Stars
- 121
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from assertj/assertj-swing
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
assertj/assertj-swing#279 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
assertj/assertj-swing#278 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
assertj/assertj-swing#276 · 1 comment ·
-
Update unit test to avoid deprecated `ExpectedException.none()` by using `Assert.assertThrows()` Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
assertj/assertj-swing#275 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
assertj/assertj-swing#277 · 1 comment ·
All issues in assertj/assertj-swing
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100