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
Hi,
I'm trying to use the deterministic scheduler in a test where the SUT calls scheduler.shutdown and I can't use it because it throws an exception.
I changed the behaviour and the build still passes which suggests a bit that this hasn't been decided (at least formally).
I think a variant is better than changing the current behaviour since some people might be relying on it already.
WDYT?
Seeing as 2.6.1 release seems really close I'd like to try and sneak this as another PR to get them both in (assuming you think it's relevant).
My current resolution is extending the jmock scheduler and overriding those 4 methods but I'd like this ShutdownAllowingDeterministicScheduler to be part of jmock.
The text was updated successfully, but these errors were encountered:
Since 2.8.1 was released and the project has regained some activity I thought I'd ping here again.
you can take a look at this gist I made to get a sense of what I meant.
WDYT?
Since 2.8.1 was released and the project has regained some activity I
thought I'd ping here again.
you can take a look at this gist https://gist.github.com/ittaiz/8cb0df991d2c773f4583 I made to get a
sense of what I meant.
WDYT?
—
Reply to this email directly or view it on GitHub #62 (comment)
.
Just to be clear- you'd like the implementation of shutdown/shutdownNow/isShutdown/isTerminated to be correct according to the javadoc or would any naive solution work? For my needs I just need the scheduler not to throw an exception but I'm guessing that if you won't throw UnsupportedOperationException because shutdown is support you'd rather have a more complete implementation. Is that assumption true?
Hi,
I'm trying to use the deterministic scheduler in a test where the SUT calls scheduler.shutdown and I can't use it because it throws an exception.
I changed the behaviour and the build still passes which suggests a bit that this hasn't been decided (at least formally).
I think a variant is better than changing the current behaviour since some people might be relying on it already.
WDYT?
Seeing as 2.6.1 release seems really close I'd like to try and sneak this as another PR to get them both in (assuming you think it's relevant).
My current resolution is extending the jmock scheduler and overriding those 4 methods but I'd like this ShutdownAllowingDeterministicScheduler to be part of jmock.
The text was updated successfully, but these errors were encountered: