public void testListenerCreationCounts() { SolrCore core = h.getCore(); assertEquals( "Unexpected number of listeners created", EXPECTED_MOCK_LISTENER_INSTANCES, MockEventListener.getCreateCount() - preInitMockListenerCount); }
@BeforeClass public static void beforeClass() throws Exception { // record current value prior to core initialization // so we can verify the correct number of instances later // NOTE: this won't work properly if concurrent tests run // in the same VM preInitMockListenerCount = MockEventListener.getCreateCount(); initCore("solrconfig-querysender-noquery.xml", "schema.xml"); }