diff options
| author | Jan Matèrne <jhm@apache.org> | 2019-09-05 09:08:20 +0200 |
|---|---|---|
| committer | Jan Matèrne <jhm@apache.org> | 2019-09-05 09:08:20 +0200 |
| commit | f8e349cdba345f0394ddf0be0b2c92da7a0d0ca8 (patch) | |
| tree | efe91167c9385863087754af5a24dbc5a57a49eb /src/tests | |
| parent | 7a3e9034e1583c319b809e641824a2fc10423f15 (diff) | |
| download | ant-f8e349cdba345f0394ddf0be0b2c92da7a0d0ca8.tar.gz | |
Provide more meaningful error message
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java | 8 |
1 files changed, 7 insertions, 1 deletions
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 24429cb19..667db4334 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 @@ public class ScriptDefTest { 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 + ); } } |
