PmaRegistryImpl implements PmaRegistry { @Override public void forceAlign(String deviceName) throws ExecutionException { executeWithPmaSession(deviceName, (PmaSessionTemplate<Void>) session -> { session.forceAlign(); 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(expected = UnsupportedOperationException.class) public void testFullResyncContactsDASTransparentSessionFactory() throws ExecutionException { m_pmaRegistryTransparentSF.forceAlign("device1"); }
@Test public void testFullResyncContactsDAS() throws ExecutionException { m_pmaRegistry.forceAlign("device1"); verify(m_das).forceAlign(any(), any()); }