本文整理了Java中gov.nist.toolkit.installation.server.Installation.testSessionExists()
方法的一些代码示例,展示了Installation.testSessionExists()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Installation.testSessionExists()
方法的具体详情如下:
包路径:gov.nist.toolkit.installation.server.Installation
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!