jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1461459 - /jackrabbit/oak/trunk/oak-solr-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/server/UpToDateNodeStateConfigurationTest.java
Date Wed, 27 Mar 2013 09:09:38 GMT
Author: tommaso
Date: Wed Mar 27 09:09:37 2013
New Revision: 1461459

URL: http://svn.apache.org/r1461459
Log:
OAK-720 - added test to check not null configuration values in UpToDate NSC

Modified:
    jackrabbit/oak/trunk/oak-solr-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/server/UpToDateNodeStateConfigurationTest.java

Modified: jackrabbit/oak/trunk/oak-solr-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/server/UpToDateNodeStateConfigurationTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-solr-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/server/UpToDateNodeStateConfigurationTest.java?rev=1461459&r1=1461458&r2=1461459&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-solr-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/server/UpToDateNodeStateConfigurationTest.java
(original)
+++ jackrabbit/oak/trunk/oak-solr-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/server/UpToDateNodeStateConfigurationTest.java
Wed Mar 27 09:09:37 2013
@@ -9,6 +9,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
 
 /**
  * Testcase for {@link UpToDateNodeStateConfiguration}
@@ -32,4 +33,12 @@ public class UpToDateNodeStateConfigurat
         UpToDateNodeStateConfiguration upToDateNodeStateConfiguration = new UpToDateNodeStateConfiguration(store,
path);
         assertEquals("cn", upToDateNodeStateConfiguration.getCoreName());
     }
+
+    @Test
+    public void testNonExistingPath() throws Exception {
+        String path = "some/path/to/oak:index/solrIdx";
+        UpToDateNodeStateConfiguration upToDateNodeStateConfiguration = new UpToDateNodeStateConfiguration(store,
path);
+        assertNotNull(upToDateNodeStateConfiguration.getSolrConfigPath());
+        assertEquals("./solr.xml", upToDateNodeStateConfiguration.getSolrConfigPath());
+    }
 }



Mime
View raw message