@Test public void testSetInstance() throws MarshalException, ValidationException, IOException { initDataCollectionFactory(m_xml); assertEquals(m_rrdRepository.getAbsolutePath(), DataCollectionConfigFactory.getInstance().getRrdPath()); assertEquals(0, DataCollectionConfigFactory.getInstance().getMibObjectList("default", ".1.9.9.9.9", "127.0.0.1", 0).size()); for (MibObject object : DataCollectionConfigFactory.getInstance().getMibObjectList("default", ".1.3.6.1.4.1.200", "127.0.0.1", 0)) { assertEquals("Invalid MibObject: " + object, "ifIndex", object.getInstance()); } assertArrayEquals(new String[0], DataCollectionConfigFactory.getInstance().getConfiguredResourceTypes().keySet().toArray(new String[0])); }
public static void setInstance(DataCollectionConfigDao instance) { m_singleton = instance; }
DataCollectionConfigFactory { public static void setInstance(DataCollectionConfigDao instance) { m_singleton = instance; } }
DataCollectionConfigFactory { public static void setInstance(DataCollectionConfigDao instance) { m_singleton = instance; }  }
DataCollectionConfigFactory { public static void setInstance(DataCollectionConfigDao instance) { m_singleton = instance; }  static void setInstance(DataCollectionConfigDao instance); static synchronized void init(); static synchronized void reload(); static synchronized DataCollectionConfigDao getInstance(); static void main(String[] args); }
DataCollectionConfigFactory { public static void setInstance(DataCollectionConfigDao instance) { m_singleton = instance; }  static void setInstance(DataCollectionConfigDao instance); static synchronized void init(); static synchronized void reload(); static synchronized DataCollectionConfigDao getInstance(); static void main(String[] args);  }