You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2020/02/16 19:49:12 UTC
[freemarker] branch 2.3-gae updated: Missing fail()-s in a test
This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git
The following commit(s) were added to refs/heads/2.3-gae by this push:
new 0bf1ec9 Missing fail()-s in a test
0bf1ec9 is described below
commit 0bf1ec92fbaa41a0e8d6c26cf1749aa458b059df
Author: ddekany <dd...@apache.org>
AuthorDate: Sun Feb 16 20:43:50 2020 +0100
Missing fail()-s in a test
---
src/test/java/freemarker/template/ConfigurationTest.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/test/java/freemarker/template/ConfigurationTest.java b/src/test/java/freemarker/template/ConfigurationTest.java
index 586bd98..9bf0609 100644
--- a/src/test/java/freemarker/template/ConfigurationTest.java
+++ b/src/test/java/freemarker/template/ConfigurationTest.java
@@ -339,12 +339,14 @@ public class ConfigurationTest extends TestCase {
try {
new Configuration(new Version(999, 1, 2));
+ fail();
} catch (IllegalArgumentException e) {
assertThat(e.getMessage(), containsString("upgrade"));
}
try {
new Configuration(new Version(2, 2, 2));
+ fail();
} catch (IllegalArgumentException e) {
assertThat(e.getMessage(), containsString("2.3.0"));
}