-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add java.time.Duration support to org.junit.rules.Timeout #1619
Comments
JUnit Jupiter is about to add support for "declarative" timeouts using a @kluever How do you currently do the plumbing to pass the duration through multiple layers? |
@marcphilipp does that work with |
In the API architecture perspective this is caled value object. That means both values |
@marcphilipp |
Re: "How do you currently do the plumbing to pass the duration through multiple layers?" I'm not sure I fully understand the question, but in order to use a |
How do you call JUnit so that there are layers around it? |
JUnit 4 is compatible with Java 5 and will stay that way. Thus, adding support for |
Representing durations as
long
s can easily lead to unit mismatch problems.Representing durations as
long, TimeUnit
pairs can require plumbing 2 values through multiple layers (and can suffer from unit mismatch or truncation issues).Could proper
java.time.Duration
support be added to theTimeout
class?(If this should be filed under junit5, please let me know and I'll open it there.)
The text was updated successfully, but these errors were encountered: