PmaRegistryImpl implements PmaRegistry { @Override public void align(String deviceName) throws ExecutionException { executeWithPmaSession(deviceName, (PmaSessionTemplate<Void>) session -> { session.align(); return null; }); } PmaRegistryImpl(DeviceManager deviceManager,
                           PmaSessionFactory factory); @Override @Transactional(value = Transactional.TxType.REQUIRED, rollbackOn = {RuntimeException.class, Exception.class}) Map<NetConfResponse, List<Notification>> executeNC(String deviceName, String netconfRequest); @Override RT executeWithPmaSession(String deviceName, PmaSessionTemplate<RT> sessionTemplate); @Override void forceAlign(String deviceName); @Override void align(String deviceName); void deviceRemoved(String deviceName); @Override NetConfResponse getAllPersistCfg(String deviceName); static final String COMPONENT_ID; }
@Test public void testsyncContactsDAS() throws ExecutionException { m_pmaRegistry.align("device1"); verify(m_das).align(eq(m_device1Meta), m_netconfResponse.capture()); }