}
public static void init(final String[] additionalContextFiles, final boolean createTestData, final AbstractPlugin... plugins) throws BeansException, IOException
{
final List<String> persistentEntries = new ArrayList<String>();
final PluginsRegistry pluginsRegistry = PluginsRegistry.instance();
for (final AbstractPlugin plugin : plugins) {
pluginsRegistry.register(plugin);
for (final Class< ? > persistentEntry : plugin.getPersistentEntities()) {
persistentEntries.add(persistentEntry.getName());
}
}
preInit(additionalContextFiles);
final MyDatabaseUpdater myDatabaseUpdater = getTestConfiguration().getBean("myDatabaseUpdater", MyDatabaseUpdater.class);
pluginsRegistry.set(myDatabaseUpdater.getSystemUpdater());
pluginsRegistry.set(getTestConfiguration().getBeanFactory());
pluginsRegistry.set(Mockito.mock(IResourceSettings.class));
pluginsRegistry.initialize();
init(createTestData);
}