Wrong test package name fixed
Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/654fdad8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/654fdad8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/654fdad8 Branch: refs/heads/3 Commit: 654fdad86a26105aa0b0d9f30f0b298490657124 Parents: 23bfeca Author: ddekany <ddek...@apache.org> Authored: Thu Mar 1 17:07:27 2018 +0100 Committer: ddekany <ddek...@apache.org> Committed: Thu Mar 1 17:07:44 2018 +0100 ---------------------------------------------------------------------- .../core/model/impl/ConstantsTest.java | 39 ++++++++++++++++++++ .../freemarker/core/model/ConstantsTest.java | 39 -------------------- 2 files changed, 39 insertions(+), 39 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/654fdad8/freemarker-core-test/src/test/java/org/apache/freemarker/core/model/impl/ConstantsTest.java ---------------------------------------------------------------------- diff --git a/freemarker-core-test/src/test/java/org/apache/freemarker/core/model/impl/ConstantsTest.java b/freemarker-core-test/src/test/java/org/apache/freemarker/core/model/impl/ConstantsTest.java new file mode 100644 index 0000000..5508dc4 --- /dev/null +++ b/freemarker-core-test/src/test/java/org/apache/freemarker/core/model/impl/ConstantsTest.java @@ -0,0 +1,39 @@ +/* + * 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. + */ +package org.apache.freemarker.core.model.impl; + +import java.io.IOException; + +import org.apache.freemarker.core.TemplateException; +import org.apache.freemarker.core.model.TemplateHashModel; +import org.apache.freemarker.test.TemplateTest; +import org.junit.Test; + +public final class ConstantsTest extends TemplateTest { + + @Test + public void testEmptyHash() throws IOException, TemplateException { + addToDataModel("h", TemplateHashModel.EMPTY_HASH); + assertOutput("{<#list h as k ,v>x</#list>}", "{}"); + assertOutput("{<#list h?keys as k>x</#list>}", "{}"); + assertOutput("{<#list h?values as k>x</#list>}", "{}"); + assertOutput("${h?size}", "0"); + } + +} http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/654fdad8/freemarker-core-test/src/test/java/org/apache/freemarker/core/model/impl/org/apache/freemarker/core/model/ConstantsTest.java ---------------------------------------------------------------------- diff --git a/freemarker-core-test/src/test/java/org/apache/freemarker/core/model/impl/org/apache/freemarker/core/model/ConstantsTest.java b/freemarker-core-test/src/test/java/org/apache/freemarker/core/model/impl/org/apache/freemarker/core/model/ConstantsTest.java deleted file mode 100644 index e8ca214..0000000 --- a/freemarker-core-test/src/test/java/org/apache/freemarker/core/model/impl/org/apache/freemarker/core/model/ConstantsTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ -package org.apache.freemarker.core.model.impl.org.apache.freemarker.core.model; - -import java.io.IOException; - -import org.apache.freemarker.core.TemplateException; -import org.apache.freemarker.core.model.TemplateHashModel; -import org.apache.freemarker.test.TemplateTest; -import org.junit.Test; - -public final class ConstantsTest extends TemplateTest { - - @Test - public void testEmptyHash() throws IOException, TemplateException { - addToDataModel("h", TemplateHashModel.EMPTY_HASH); - assertOutput("{<#list h as k ,v>x</#list>}", "{}"); - assertOutput("{<#list h?keys as k>x</#list>}", "{}"); - assertOutput("{<#list h?values as k>x</#list>}", "{}"); - assertOutput("${h?size}", "0"); - } - -}