@Test public void testExecute_WhenSDNReturnsNullNetworkElement_ThrowsVmidcException() throws Exception { KubernetesPod k8sPod = createKubernetesPod(); DeploymentSpec ds = createAndRegisterDeploymentSpec(null); registerNetworkElement(ds, null, k8sPod); CreateOrUpdateK8sDAITask task = this.factory.create(ds, k8sPod); this.exception.expect(VmidcException.class); this.exception.expectMessage("The SDN controller did not return a network element"); task.execute(); }
public CreateOrUpdateK8sDAITask create(DeploymentSpec ds, KubernetesPod k8sPod) { return create(ds, k8sPod, null); }
CreateOrUpdateK8sDAITask extends TransactionalTask { public CreateOrUpdateK8sDAITask create(DeploymentSpec ds, KubernetesPod k8sPod) { return create(ds, k8sPod, null); } }
CreateOrUpdateK8sDAITask extends TransactionalTask { public CreateOrUpdateK8sDAITask create(DeploymentSpec ds, KubernetesPod k8sPod) { return create(ds, k8sPod, null); }  }
CreateOrUpdateK8sDAITask extends TransactionalTask { public CreateOrUpdateK8sDAITask create(DeploymentSpec ds, KubernetesPod k8sPod) { return create(ds, k8sPod, null); }  CreateOrUpdateK8sDAITask create(DeploymentSpec ds, KubernetesPod k8sPod); @Override void executeTransaction(EntityManager em); @Override String getName(); @Override Set<LockObjectReference> getObjects(); }
CreateOrUpdateK8sDAITask extends TransactionalTask { public CreateOrUpdateK8sDAITask create(DeploymentSpec ds, KubernetesPod k8sPod) { return create(ds, k8sPod, null); }  CreateOrUpdateK8sDAITask create(DeploymentSpec ds, KubernetesPod k8sPod); @Override void executeTransaction(EntityManager em); @Override String getName(); @Override Set<LockObjectReference> getObjects();  }