@Test public void testExecute_WithDAIAssignedToInspectionElement_DAICleanedOfNetworkInformation() throws Exception { DistributedApplianceInstance dai = createAndRegisterDAI(true, 100L); CleanK8sDAITask task = this.factory.create(dai); task.execute(); verify(this.em, Mockito.times(1)).merge(Mockito.argThat(new CleanNetworkInfoDAIMatcher())); verify(this.em, Mockito.never()).remove(Mockito.any(DistributedApplianceInstance.class)); }
public CleanK8sDAITask create(DistributedApplianceInstance daiForDeletion) { return create(daiForDeletion, null); }
CleanK8sDAITask extends TransactionalTask { public CleanK8sDAITask create(DistributedApplianceInstance daiForDeletion) { return create(daiForDeletion, null); } }
CleanK8sDAITask extends TransactionalTask { public CleanK8sDAITask create(DistributedApplianceInstance daiForDeletion) { return create(daiForDeletion, null); }  }
CleanK8sDAITask extends TransactionalTask { public CleanK8sDAITask create(DistributedApplianceInstance daiForDeletion) { return create(daiForDeletion, null); }  CleanK8sDAITask create(DistributedApplianceInstance daiForDeletion); @Override void executeTransaction(EntityManager em); @Override String getName(); @Override Set<LockObjectReference> getObjects(); }
CleanK8sDAITask extends TransactionalTask { public CleanK8sDAITask create(DistributedApplianceInstance daiForDeletion) { return create(daiForDeletion, null); }  CleanK8sDAITask create(DistributedApplianceInstance daiForDeletion); @Override void executeTransaction(EntityManager em); @Override String getName(); @Override Set<LockObjectReference> getObjects();  }