diff options
Diffstat (limited to 'velocity-engine-core/src')
-rw-r--r-- | velocity-engine-core/src/test/java/org/apache/velocity/test/SecureIntrospectionTestCase.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/velocity-engine-core/src/test/java/org/apache/velocity/test/SecureIntrospectionTestCase.java b/velocity-engine-core/src/test/java/org/apache/velocity/test/SecureIntrospectionTestCase.java index 8653f40a..9593433a 100644 --- a/velocity-engine-core/src/test/java/org/apache/velocity/test/SecureIntrospectionTestCase.java +++ b/velocity-engine-core/src/test/java/org/apache/velocity/test/SecureIntrospectionTestCase.java @@ -138,9 +138,9 @@ public class SecureIntrospectionTestCase extends BaseTestCase private boolean doesStringEvaluate(VelocityEngine ve, Context c, String inputString) throws ParseErrorException, MethodInvocationException, ResourceNotFoundException, IOException { - // assume that an evaluation is bad if the input and result are the same (e.g. a bad reference) - // or the result is an empty string (e.g. bad #foreach) - Writer w = new StringWriter(); + // assume that an evaluation is bad if the input and result are the same (e.g. a bad reference) + // or the result is an empty string (e.g. bad #foreach) + Writer w = new StringWriter(); ve.evaluate(c, w, "foo", inputString); String result = w.toString(); return (result.length() > 0 ) && !result.equals(inputString); @@ -163,14 +163,14 @@ public class SecureIntrospectionTestCase extends BaseTestCase } - public Collection getCollection() - { - Collection c = new HashSet(); - c.add("aaa"); - c.add("bbb"); - c.add("ccc"); - return c; - } + public Collection getCollection() + { + Collection c = new HashSet(); + c.add("aaa"); + c.add("bbb"); + c.add("ccc"); + return c; + } } |