- setUpContextAndStartPersister("cap1", getConflictingService());
- doReturn(getConflictingService()).when(ctx.serviceFactory).createService(anyString());
- Thread.sleep(500);
- // working service:
- LOG.info("Switching to working service **");
- doReturn(getWorkingService(getOKDocument())).when(ctx.serviceFactory).createService(anyString());
+ LOG.info("testSuccessConflictingVersionException starting");
+
+ setUpContext("cap1");
+
+ NetconfOperationService conflictingService = getConflictingService();
+ NetconfOperationService workingService = getWorkingService(getOKDocument());
+
+ doReturn(conflictingService).doReturn(conflictingService).doReturn(conflictingService).
+ doReturn(workingService).when(ctx.serviceFactory).createService(anyString());
+
+ configPersisterActivator.start(ctx.getBundleContext());
+