You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that due to the lack of a Scheduler the CommandTester cannot support CommandGroups in any form. This can be seen in this test which fails on the selected line since the command does not actually get executed.
Not entirely sure how this can be achieved, but it would be very helpful
The text was updated successfully, but these errors were encountered:
I dug around and came to the same conclusion as you. CommandTester directly uses CommandRunner, but CommandRunner alone doesn't support CommandGroups (so it calls CommandGroup#execute, which returns false so the command never finishes). Scheduler#buildRunner is the needed glue.
The Scheduler does seem tightly coupled to the main framework, so I'm hesitant to try to retrofit it into CommandTester―perhaps we could instead look into extracting Scheduler#buildRunner into CommandRunner? The static factory method pattern looks like it might help here. 😄
rothso
added a commit
to rothso/strongback-java
that referenced
this issue
Jun 14, 2017
It appears that due to the lack of a Scheduler the CommandTester cannot support CommandGroups in any form. This can be seen in this test which fails on the selected line since the command does not actually get executed.
Not entirely sure how this can be achieved, but it would be very helpful
The text was updated successfully, but these errors were encountered: