commit | f8e349cdba345f0394ddf0be0b2c92da7a0d0ca8 | [log] [tgz] |
---|---|---|
author | Jan Matèrne <jhm@apache.org> | Thu Sep 05 09:08:20 2019 +0200 |
committer | Jan Matèrne <jhm@apache.org> | Thu Sep 05 09:08:20 2019 +0200 |
tree | efe91167c9385863087754af5a24dbc5a57a49eb | |
parent | 7a3e9034e1583c319b809e641824a2fc10423f15 [diff] |
Provide more meaningful error message
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java index 24429cb..667db43 100644 --- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java +++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
@@ -170,6 +170,12 @@ notCompiledDuration = System.nanoTime() - start; } - assertTrue(duration < notCompiledDuration); + assertTrue( + String.format( + "Compiled scripts should run faster (%d ns) than not compiled (%d ns) scripts.", + duration, notCompiledDuration + ), + duration < notCompiledDuration + ); } }