import org.wamblee.general.SystemClock;
import org.wamblee.xmlrouter.common.Id;
import org.wamblee.xmlrouter.config.DocumentType;
-import org.wamblee.xmlrouter.config.RouterConfig;
import org.wamblee.xmlrouter.config.Transformation;
import org.wamblee.xmlrouter.listener.EventInfo;
import org.wamblee.xmlrouter.listener.EventListener;
EventListener logListener = new LoggingEventListener(Level.INFO);
listener = spy(logListener);
routerService = new XMLRouter(new SystemClock(), config, listener);
- configService = new XMLRouterConfigService(config);
+ configService = new XMLRouterConfigService("app", config);
source1 = mock(DOMSource.class);
source2 = mock(DOMSource.class);
DocumentType type = mock(DocumentType.class);
when(type.isInstance(any(DOMSource.class))).thenReturn(true);
when(type.getName()).thenReturn(aType);
+ when(type.getId()).thenReturn(new Id<DocumentType>(aType));
RouterConfig routerConfig = configService.emptyConfig("app");
routerConfig.documentTypeConfig().add(type);
return routerConfig;