FAQ
Author: ehatcher
Date: Sat Sep 12 17:31:34 2015
New Revision: 1702650

URL: http://svn.apache.org/r1702650
Log:
SOLR-8044: fix VelocityResponseWriterTest.testLocaleFeature

Added:
     lucene/dev/trunk/solr/contrib/velocity/src/test-files/velocity/solr/collection1/conf/velocity/resource_get.vm (with props)
Modified:
     lucene/dev/trunk/solr/contrib/velocity/src/test/org/apache/solr/velocity/VelocityResponseWriterTest.java

Added: lucene/dev/trunk/solr/contrib/velocity/src/test-files/velocity/solr/collection1/conf/velocity/resource_get.vm
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/velocity/src/test-files/velocity/solr/collection1/conf/velocity/resource_get.vm?rev=1702650&view=auto
==============================================================================
--- lucene/dev/trunk/solr/contrib/velocity/src/test-files/velocity/solr/collection1/conf/velocity/resource_get.vm (added)
+++ lucene/dev/trunk/solr/contrib/velocity/src/test-files/velocity/solr/collection1/conf/velocity/resource_get.vm Sat Sep 12 17:31:34 2015
@@ -0,0 +1 @@
+$resource.get("color","resources","en_UK")
\ No newline at end of file

Modified: lucene/dev/trunk/solr/contrib/velocity/src/test/org/apache/solr/velocity/VelocityResponseWriterTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/velocity/src/test/org/apache/solr/velocity/VelocityResponseWriterTest.java?rev=1702650&r1=1702649&r2=1702650&view=diff
==============================================================================
--- lucene/dev/trunk/solr/contrib/velocity/src/test/org/apache/solr/velocity/VelocityResponseWriterTest.java (original)
+++ lucene/dev/trunk/solr/contrib/velocity/src/test/org/apache/solr/velocity/VelocityResponseWriterTest.java Sat Sep 12 17:31:34 2015
@@ -150,9 +150,7 @@ public class VelocityResponseWriterTest
          VelocityResponseWriter.LOCALE,"en_UK")));

      // Test that $resource.get(key,baseName,locale) works with specified locale
- assertEquals("Colour", h.query(req("q","*:*", "wt","velocityWithCustomTools",VelocityResponseWriter.TEMPLATE,"t",
- SolrParamResourceLoader.TEMPLATE_PARAM_PREFIX+"t", "$resource.get(\"color\",\"resources\",\"en_UK\")")));
-
+ assertEquals("Colour", h.query(req("q","*:*", "wt","velocityWithCustomTools",VelocityResponseWriter.TEMPLATE,"resource_get")));
    }

    @Test

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieslucene
postedSep 12, '15 at 5:31p
activeSep 12, '15 at 5:31p
posts1
users1
websitelucene.apache.org

1 user in discussion

Ehatcher: 1 post

People

Translate

site design / logo © 2021 Grokbase