Ejemplo n.º 1
0
 @Test
 public void testXmlInZkOnly() throws Exception {
   try {
     setUpZkAndDiskXml(true, false);
     assertEquals(
         "Should have gotten a new port the xml file sent to ZK", cfg.getZkHostPort(), "9045");
   } finally {
     closeZK();
   }
 }
Ejemplo n.º 2
0
 @Test
 public void testOnDiskOnly() throws Exception {
   try {
     System.clearProperty("solr.solrxml.location");
     setUpZkAndDiskXml(false, true);
     assertEquals("Should have gotten the default port", cfg.getZkHostPort(), "8983");
   } finally {
     closeZK();
   }
 }
Ejemplo n.º 3
0
 @Test
 public void testXmlOnBoth() throws Exception {
   try {
     setUpZkAndDiskXml(true, true);
     assertEquals(
         "Should have gotten a new port the xml file sent to ZK, overrides the copy on disk",
         cfg.getZkHostPort(),
         "9045");
   } finally {
     closeZK();
   }
 }