aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2019-03-03 17:47:32 +0000
committerClaude Brisson <cbrisson@apache.org>2019-03-03 17:47:32 +0000
commite6bc7dc9661efabf26a8aade5b546829bc8667dd (patch)
tree235e92ee80e0477770facd14ba03d5cb3fcfca3c /velocity-engine-core/src/test
parentd24fbe2c5729ad26f99462dd689cd3effb677dc0 (diff)
downloadapache-velocity-engine-e6bc7dc9661efabf26a8aade5b546829bc8667dd.tar.gz
[engine] Don't mix hyphens with dashes ; use '_' for word separator in corresponding property name
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1854737 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/test')
-rw-r--r--velocity-engine-core/src/test/java/org/apache/velocity/test/HyphenInIdentifiersTestCase.java (renamed from velocity-engine-core/src/test/java/org/apache/velocity/test/DashInIdentifiersTestCase.java)8
1 files changed, 4 insertions, 4 deletions
diff --git a/velocity-engine-core/src/test/java/org/apache/velocity/test/DashInIdentifiersTestCase.java b/velocity-engine-core/src/test/java/org/apache/velocity/test/HyphenInIdentifiersTestCase.java
index 42d0fcbc..4ab2b8b2 100644
--- a/velocity-engine-core/src/test/java/org/apache/velocity/test/DashInIdentifiersTestCase.java
+++ b/velocity-engine-core/src/test/java/org/apache/velocity/test/HyphenInIdentifiersTestCase.java
@@ -26,19 +26,19 @@ import org.apache.velocity.app.VelocityEngine;
* This class tests passing expressions as method arguments
*/
-public class DashInIdentifiersTestCase extends BaseTestCase
+public class HyphenInIdentifiersTestCase extends BaseTestCase
{
- public DashInIdentifiersTestCase(final String name)
+ public HyphenInIdentifiersTestCase(final String name)
{
super(name);
}
protected void setUpEngine(VelocityEngine engine)
{
- engine.addProperty("parser.allows.dash.in.identifiers", true);
+ engine.addProperty("parser.allow_hyphen_in_identifiers", true);
}
- public void testDash()
+ public void testHyphen()
{
assertEvalEquals("6","#set($var-1 = 7)#set($var-2 = $var-1 - 1)$var-2");
}