@Test public void testConstruct() throws Exception { final File targetFile = new File(testOutDir, "testConstruct.xml"); final File writeBack = new File(testOutDir, "testConstruct_writeback"); if (targetFile.exists()) { targetFile.delete(); } if (writeBack.exists()) { FileUtils.deleteDirectory(writeBack); } OakMachine.Builder builder = TestUtil.fromPlan(obj().get()); WebsterPrivilegesTarget target = new WebsterPrivilegesTarget(targetFile); target.setArchive(new FileArchive(new File("src/test/resources/filevault/onePrivRef")), writeBack); builder.build().initAndInspect(target::perform); assertFileContains(targetFile, "<privileges/>"); }
@Override public void setArchive(final Archive archive, final File writeBackDir) { this.archive = archive; this.writeBackDir = writeBackDir; }
WebsterPrivilegesTarget implements WebsterTarget, ArchiveAware { @Override public void setArchive(final Archive archive, final File writeBackDir) { this.archive = archive; this.writeBackDir = writeBackDir; } }
WebsterPrivilegesTarget implements WebsterTarget, ArchiveAware { @Override public void setArchive(final Archive archive, final File writeBackDir) { this.archive = archive; this.writeBackDir = writeBackDir; } WebsterPrivilegesTarget(final File targetFile); }
WebsterPrivilegesTarget implements WebsterTarget, ArchiveAware { @Override public void setArchive(final Archive archive, final File writeBackDir) { this.archive = archive; this.writeBackDir = writeBackDir; } WebsterPrivilegesTarget(final File targetFile); @Override void setArchive(final Archive archive, final File writeBackDir); @Override void perform(final Session session); }
WebsterPrivilegesTarget implements WebsterTarget, ArchiveAware { @Override public void setArchive(final Archive archive, final File writeBackDir) { this.archive = archive; this.writeBackDir = writeBackDir; } WebsterPrivilegesTarget(final File targetFile); @Override void setArchive(final Archive archive, final File writeBackDir); @Override void perform(final Session session);  }