lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject [1/2] lucene-solr:jira/solr-5944: SOLR-5944: use single quotes & reformat a tad for readability
Date Sun, 08 Jan 2017 21:27:37 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/jira/solr-5944 17243ca4f -> f8b966cd7


SOLR-5944: use single quotes & reformat a tad for readability


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/7a50b74d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/7a50b74d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/7a50b74d

Branch: refs/heads/jira/solr-5944
Commit: 7a50b74dc6c86e60307d2aeb20f54a0fa67bbee1
Parents: 17243ca
Author: Chris Hostetter <hossman@apache.org>
Authored: Sun Jan 8 12:14:51 2017 -0700
Committer: Chris Hostetter <hossman@apache.org>
Committed: Sun Jan 8 12:14:51 2017 -0700

----------------------------------------------------------------------
 .../src/test/org/apache/solr/update/UpdateLogTest.java   | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7a50b74d/solr/core/src/test/org/apache/solr/update/UpdateLogTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/update/UpdateLogTest.java b/solr/core/src/test/org/apache/solr/update/UpdateLogTest.java
index c6f83a9..7d08729 100644
--- a/solr/core/src/test/org/apache/solr/update/UpdateLogTest.java
+++ b/solr/core/src/test/org/apache/solr/update/UpdateLogTest.java
@@ -165,10 +165,13 @@ public class UpdateLogTest extends SolrTestCaseJ4 {
     
     // sanity check that the update log has one document, and RTG returns the document
     assertEquals(1, ulog.map.size());
-    assertJQ(req("qt","/get", "id","1"), "=={'doc':{ \"id\":\"1\", \"val1_i_dvo\":3, "
-        + "\"_version_\":102, \"title_s\":\"title1\", \"copyfield1_src__both_updateable\":0,
\"inplace_updatable_float\":0.0,"
-        + " \"copyfield2_src__only_src_updatable\":0, \"inplace_updatable_int\":0, "
-        + "\"inplace_updatable_int_with_default\":666, \"inplace_updatable_float_with_default\":42.0}}");
+    assertJQ(req("qt","/get", "id","1")
+             , "=={'doc':{ 'id':'1', 'val1_i_dvo':3, "
+             // fields with default values
+             + "'_version_':102, 'title_s':'title1', "
+             + "'copyfield1_src__both_updateable':0, 'inplace_updatable_float':0.0,"
+             + "'copyfield2_src__only_src_updatable':0, 'inplace_updatable_int':0, "
+             + "'inplace_updatable_int_with_default':666, 'inplace_updatable_float_with_default':42.0}}");
     
     boolean dbq = random().nextBoolean();
     ulogDelete(ulog, "1", 200L, dbq); // delete id:1 document


Mime
View raw message