gov.nist.toolkit.installation.server.Installation.testSessionExists()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(163)

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

Installation.testSessionExists介绍

暂无

代码示例

代码示例来源:origin: usnistgov/iheos-toolkit2

public void setAssignedSiteForTestSession(TestSession testSession, String siteName) throws IOException {
    if (!Installation.instance().testSessionExists(testSession))
      throw new IOException("Test Session " + testSession + " does not exist");
    TestLogCache testLogCache = getTestLogCache();
    File testSessionDir = testLogCache.getSessionDir(testSession);
    testSessionDir.mkdirs();
//        if (!testSessionDir.exists() || !testSessionDir.isDirectory())
//            throw new IOException("Test Session " + testSession + " does not exist");
    if (siteName == null) {
      Io.delete(new File(testSessionDir, SITEFILE));
    } else {
      Io.stringToFile(new File(testSessionDir, SITEFILE), siteName);
    }
  }

代码示例来源:origin: usnistgov/iheos-toolkit2

private String getQualifiedName(Site s) {
  TestSession owningTestSession = (s.getOwner() == null) ? TestSession.DEFAULT_TEST_SESSION : new TestSession(s.getOwner());
  if (Installation.instance().testSessionExists(owningTestSession) || owningTestSession.equals(TestSession.GAZELLE_TEST_SESSION))
    return owningTestSession.getValue() + ":" + s.getName();
  return "UNDEFINED:" + s.getName();
}

相关文章