Example usage for org.apache.solr SolrTestCaseJ4 resetFactory

List of usage examples for org.apache.solr SolrTestCaseJ4 resetFactory

Introduction

In this page you can find the example usage for org.apache.solr SolrTestCaseJ4 resetFactory.

Prototype

public static void resetFactory() throws Exception 

Source Link

Usage

From source file:org.apache.sentry.tests.e2e.solr.HdfsTestUtil.java

License:Apache License

public static void teardownClass(MiniDFSCluster dfsCluster) throws Exception {
    SolrTestCaseJ4.resetFactory();
    System.clearProperty("solr.lock.type");
    System.clearProperty("test.build.data");
    System.clearProperty("test.cache.data");
    if (dfsCluster != null) {
        dfsCluster.shutdown();/*from   www.  j ava  2  s.  co m*/
    }

    // TODO: we HACK around HADOOP-9643
    if (savedLocale != null) {
        Locale.setDefault(savedLocale);
    }
}