本文整理了Java中org.mozilla.zest.core.v1.ZestLoopFile.<init>()
方法的一些代码示例,展示了ZestLoopFile.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZestLoopFile.<init>()
方法的具体详情如下:
包路径:org.mozilla.zest.core.v1.ZestLoopFile
类名称:ZestLoopFile
方法名:<init>
[英]Instantiates a new zest loop file.
[中]实例化一个新的zest循环文件。
代码示例来源:origin: mozilla/zest
/**
* Method testOpenFile.
*
* @throws IOException
*/
@Test
public void testOpenFile() throws IOException {
new ZestLoopFile(file.getAbsolutePath());
}
}
代码示例来源:origin: mozilla/zest
public static void main(String[] args) throws FileNotFoundException {
ZestLoopFile loop = new ZestLoopFile(ZestLoopFileUnitTest.file.getAbsolutePath());
ZestScript script =
new ZestScript(
代码示例来源:origin: mozilla/zest
@Test
public void testLoop() throws Exception {
ZestScript script = new ZestScript();
ZestLoopFile loop = new ZestLoopFile();
loop.setVariableName("aaa");
script.add(loop);
Set<String> vars = script.getVariableNames();
assertTrue(vars.contains("aaa"));
}
}
代码示例来源:origin: mozilla/zest
@Test
public void testSerializationLoopFile() throws FileNotFoundException {
ZestLoopFile loop = new ZestLoopFile(ZestLoopFileUnitTest.file.getAbsolutePath());
for (ZestStatement stmt : statements) {
loop.addStatement(stmt);
}
String loopString = ZestJSON.toString(loop);
ZestLoopFile copy = (ZestLoopFile) ZestJSON.fromString(loopString);
String copyString = ZestJSON.toString(copy);
// System.out.println("===============================");
// System.out.println(" LOOP FILE");
// System.out.println("===============================");
// System.out.println(copyString);
assertTrue(loopString.equals(copyString));
}
}
代码示例来源:origin: mozilla/zest
@Override
public ZestLoopFile deepCopy() {
ZestLoopFile copy;
try {
copy = new ZestLoopFile(this.getIndex());
copy.setVariableName(this.getVariableName());
copy.setCurrentState(this.getCurrentState().deepCopy());
copy.setStatements(this.copyStatements());
copy.setSet(this.getSet().deepCopy());
copy.setEnabled(this.isEnabled());
return copy;
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
代码示例来源:origin: mozilla/zest
System.out.println(" ZestLoopFile");
System.out.println("---------------------");
ZestLoopFile loopFile = new ZestLoopFile(ZestLoopFileUnitTest.file.getAbsolutePath());
for (ZestStatement stmt : statements) {
loopFile.addStatement(stmt);
内容来源于网络,如有侵权,请联系作者删除!