add test case for EmeddedSolrConnector close()

for issue http://mantis.tokeek.de/view.php?id=686
(without solving the issue here)
pull/77/head
reger 8 years ago
parent dc25aee84a
commit 11786457b7

@ -172,4 +172,20 @@ public class EmbeddedSolrConnectorTest {
}
assertEquals(id, foundid);
}
/**
* Test of close and reopen embedded Solr
* test for issue http://mantis.tokeek.de/view.php?id=686
* and debug option for EmbeddedSolrConnector.close() (cause this.core.close())
*/
@Test
public void testClose() {
System.out.println("-close "+solr.toString());
solr.close();
System.out.println("+reopen "+solr.toString());
initTesting();
assertTrue(!solr.isClosed());
}
}

Loading…
Cancel
Save