org.jboss.arquillian.container.spi.client.deployment.Deployment.hasDeploymentError()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(162)

本文整理了Java中org.jboss.arquillian.container.spi.client.deployment.Deployment.hasDeploymentError()方法的一些代码示例,展示了Deployment.hasDeploymentError()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Deployment.hasDeploymentError()方法的具体详情如下:
包路径:org.jboss.arquillian.container.spi.client.deployment.Deployment
类名称:Deployment
方法名:hasDeploymentError

Deployment.hasDeploymentError介绍

暂无

代码示例

代码示例来源:origin: org.jboss.arquillian.container/arquillian-container-spi

public List<Deployment> deploymentsInError() {
  List<Deployment> result = new ArrayList<Deployment>();
  for (Deployment dep : this.deployments) {
    if (dep.hasDeploymentError()) {
      result.add(dep);
    }
  }
  return result;
}

代码示例来源:origin: arquillian/arquillian-core

public List<Deployment> deploymentsInError() {
  List<Deployment> result = new ArrayList<Deployment>();
  for (Deployment dep : this.deployments) {
    if (dep.hasDeploymentError()) {
      result.add(dep);
    }
  }
  return result;
}

代码示例来源:origin: arquillian/arquillian-core

@Override
  public Void call() throws Exception {
    DeployableContainer<?> deployableContainer = event.getDeployableContainer();
    Deployment deployment = event.getDeployment();
    DeploymentDescription description = deployment.getDescription();
    deployEvent.fire(new BeforeUnDeploy(deployableContainer, description));
    try {
      if (deployment.getDescription().isArchiveDeployment()) {
        try {
          deployableContainer.undeploy(
            description.getTestableArchive() != null ? description.getTestableArchive()
              : description.getArchive());
        } catch (Exception e) {
          if (!deployment.hasDeploymentError()) {
            throw e;
          }
        }
      } else {
        deployableContainer.undeploy(description.getDescriptor());
      }
    } finally {
      deployment.undeployed();
    }
    deployEvent.fire(new AfterUnDeploy(deployableContainer, description));
    return null;
  }
});

代码示例来源:origin: org.jboss.arquillian.container/arquillian-container-impl-base

@Override
  public Void call() throws Exception {
    DeployableContainer<?> deployableContainer = event.getDeployableContainer();
    Deployment deployment = event.getDeployment();
    DeploymentDescription description = deployment.getDescription();
    deployEvent.fire(new BeforeUnDeploy(deployableContainer, description));
    try {
      if (deployment.getDescription().isArchiveDeployment()) {
        try {
          deployableContainer.undeploy(
            description.getTestableArchive() != null ? description.getTestableArchive()
              : description.getArchive());
        } catch (Exception e) {
          if (!deployment.hasDeploymentError()) {
            throw e;
          }
        }
      } else {
        deployableContainer.undeploy(description.getDescriptor());
      }
    } finally {
      deployment.undeployed();
    }
    deployEvent.fire(new AfterUnDeploy(deployableContainer, description));
    return null;
  }
});

相关文章