@Test public void testGetSetConfiguration() { Configuration currentConfig = Configuration.current(); assertThat(currentConfig instanceof Configuration).isTrue(); Configuration newConfig = Mockito.mock(Configuration.class); try{ ConfigurationProvider.setConfiguration(newConfig); assertThat(Configuration.current()).isEqualTo(newConfig); }finally{ ConfigurationProvider.setConfiguration(currentConfig); } assertThat(Configuration.current()).isEqualTo(currentConfig); }
public static void setConfiguration(Configuration config) { setConfiguration(config, Thread.currentThread().getContextClassLoader()); }
ConfigurationProvider { public static void setConfiguration(Configuration config) { setConfiguration(config, Thread.currentThread().getContextClassLoader()); } }
ConfigurationProvider { public static void setConfiguration(Configuration config) { setConfiguration(config, Thread.currentThread().getContextClassLoader()); } private  ConfigurationProvider(); }
ConfigurationProvider { public static void setConfiguration(Configuration config) { setConfiguration(config, Thread.currentThread().getContextClassLoader()); } private  ConfigurationProvider(); static Configuration getConfiguration(); static Configuration getConfiguration(ClassLoader classLoader); static Configuration createConfiguration(ConfigurationContext context); static void setConfiguration(Configuration config); static void setConfiguration(Configuration config, ClassLoader classLoader); static ConfigurationBuilder getConfigurationBuilder(); }
ConfigurationProvider { public static void setConfiguration(Configuration config) { setConfiguration(config, Thread.currentThread().getContextClassLoader()); } private  ConfigurationProvider(); static Configuration getConfiguration(); static Configuration getConfiguration(ClassLoader classLoader); static Configuration createConfiguration(ConfigurationContext context); static void setConfiguration(Configuration config); static void setConfiguration(Configuration config, ClassLoader classLoader); static ConfigurationBuilder getConfigurationBuilder();  }