@Test public void testInitializeDefaults() throws Exception { xmlResourceFactory.initializeDefaults(); verify( xmlResourceFactory, never() ).registerModule( any( XmlFactoryModule.class ) ); MailDefinitionXmlResourceFactory.register( DataDefinitionXmlFactoryModule.class ); xmlResourceFactory.initializeDefaults(); verify( xmlResourceFactory ).registerModule( any( XmlFactoryModule.class ) ); }
public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } }
MailDefinitionXmlResourceFactory extends AbstractXmlResourceFactory { public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } } }
MailDefinitionXmlResourceFactory extends AbstractXmlResourceFactory { public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } } MailDefinitionXmlResourceFactory(); }
MailDefinitionXmlResourceFactory extends AbstractXmlResourceFactory { public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } } MailDefinitionXmlResourceFactory(); static void register( final Class<? extends XmlFactoryModule> readHandler ); void initializeDefaults(); Class getFactoryType(); }
MailDefinitionXmlResourceFactory extends AbstractXmlResourceFactory { public void initializeDefaults() { super.initializeDefaults(); final XmlFactoryModule[] registeredHandlers = registry.getRegisteredHandlers(); for ( int i = 0; i < registeredHandlers.length; i++ ) { registerModule( registeredHandlers[i] ); } } MailDefinitionXmlResourceFactory(); static void register( final Class<? extends XmlFactoryModule> readHandler ); void initializeDefaults(); Class getFactoryType();  }