@Test public void prepare() throws Exception { File source = folder.newFile("source"); File drain = folder.newFile("drain"); try (FileResourceMirror resource = new FileResourceMirror("testing")) { ProcessScript<String> script = script(source, drain); resource.prepare(gate(script)); } }
@Override public void prepare(GateScript script) throws IOException { return; }
FileResourceMirror extends ResourceMirror { @Override public void prepare(GateScript script) throws IOException { return; } }
FileResourceMirror extends ResourceMirror { @Override public void prepare(GateScript script) throws IOException { return; } FileResourceMirror(String name); }
FileResourceMirror extends ResourceMirror { @Override public void prepare(GateScript script) throws IOException { return; } FileResourceMirror(String name); @Override String getName(); @Override void prepare(GateScript script); @Override SourceDriver<T> createSource(ProcessScript<T> script); @Override DrainDriver<T> createDrain(ProcessScript<T> script); @Override void close(); }
FileResourceMirror extends ResourceMirror { @Override public void prepare(GateScript script) throws IOException { return; } FileResourceMirror(String name); @Override String getName(); @Override void prepare(GateScript script); @Override SourceDriver<T> createSource(ProcessScript<T> script); @Override DrainDriver<T> createDrain(ProcessScript<T> script); @Override void close();  }