freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [08/35] incubator-freemarker git commit: (More test for public static fields access in configuration strings)
Date Wed, 30 Dec 2015 18:11:28 GMT
(More test for public static fields access in configuration strings)


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/d5c2d143
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/d5c2d143
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/d5c2d143

Branch: refs/heads/2.3
Commit: d5c2d14366140460877e106b54e10544c40547bf
Parents: 0020e66
Author: ddekany <ddekany@apache.org>
Authored: Mon Dec 21 02:28:10 2015 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Mon Dec 21 02:28:10 2015 +0100

----------------------------------------------------------------------
 src/test/java/freemarker/core/ObjectBuilderSettingsTest.java | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/d5c2d143/src/test/java/freemarker/core/ObjectBuilderSettingsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/freemarker/core/ObjectBuilderSettingsTest.java b/src/test/java/freemarker/core/ObjectBuilderSettingsTest.java
index 4276c7a..57648ec 100644
--- a/src/test/java/freemarker/core/ObjectBuilderSettingsTest.java
+++ b/src/test/java/freemarker/core/ObjectBuilderSettingsTest.java
@@ -951,6 +951,13 @@ public class ObjectBuilderSettingsTest {
             assertThat(e.getMessage(),
                     containsString("freemarker.core.ObjectBuilderSettingsTest$TestStaticFields.CONST"));
         }
+        try {
+            assertEqualsEvaled(123, "java.lang.String(freemarker.core.ObjectBuilderSettingsTest$TestBean5.INSTANCE)");
+            fail();
+        } catch (_ObjectBuilderSettingEvaluationException e) {
+            assertThat(e.getMessage(),
+                    containsString("freemarker.core.ObjectBuilderSettingsTest$TestBean5()"));
+        }
     }
     
     private void assertEqualsEvaled(Object expectedValue, String s)


Mime
View raw message