diff options
author | Claude Brisson <cbrisson@apache.org> | 2020-01-23 16:51:09 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2020-01-23 16:51:09 +0000 |
commit | bf33425e64cb59b0f69ef60296f5fde84dfd9558 (patch) | |
tree | f4476265ba10820be15613105b8339c7409d9593 /velocity-engine-core/src/test | |
parent | 8cec722a4a551fc3645796bc4e753f956438f3fb (diff) | |
download | apache-velocity-engine-bf33425e64cb59b0f69ef60296f5fde84dfd9558.tar.gz |
[engine] Fix VELOCITY-926
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1873069 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/test')
-rwxr-xr-x | velocity-engine-core/src/test/java/org/apache/velocity/test/issues/Velocity926TestCase.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/Velocity926TestCase.java b/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/Velocity926TestCase.java new file mode 100755 index 00000000..1a335507 --- /dev/null +++ b/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/Velocity926TestCase.java @@ -0,0 +1,39 @@ +package org.apache.velocity.test.issues; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.apache.velocity.VelocityContext; +import org.apache.velocity.test.BaseTestCase; + +/** + * This class tests VELOCITY-926. + */ +public class Velocity926TestCase extends BaseTestCase +{ + public Velocity926TestCase(String name) + { + super(name); + } + + public void testNamesCollision() + { + assertEvalEquals("bar foo", "#set($foo='foo')#set($bar='bar')#macro(test, $foo, $bar)$foo $bar#end#test($bar, $foo)"); + } +} |