test_class.declarator: testOutDir = new File("target/test-out/WebsterPrivilegesTargetTest")
test_class.modifier: final
test_class.original_string: final File testOutDir = new File("target/test-out/WebsterPrivilegesTargetTest");
test_class.type: File
test_class.var_name: testOutDir
test_class.file: webster/src/test/java/net/adamcin/oakpal/webster/targets/WebsterPrivilegesTargetTest.java
test_class.identifier: WebsterPrivilegesTargetTest
test_case.body: @Test
      public void testWithExisting() throws Exception {
          final File targetFile = new File(testOutDir, "testWithExisting.xml");
          final File writeBack = new File(testOutDir, "testWithExisting_writeback");
          if (targetFile.exists()) {
              targetFile.delete();
          }
          if (writeBack.exists()) {
              FileUtils.deleteDirectory(writeBack);
          }
          OakMachine.Builder builder = TestUtil.fromPlan(obj()
                  .key("jcrNamespaces", arr(JcrNs.create("foo", "http://adamcin.net/foo")))
                  .key("jcrPrivileges", arr("foo:canBar"))
                  .get());
          WebsterPrivilegesTarget target = new WebsterPrivilegesTarget(targetFile);
          target.setArchive(new FileArchive(new File("src/test/resources/filevault/onePrivRef")), writeBack);
          builder.build().initAndInspect(target::perform);
  
          assertFileNotContains(targetFile, "<privileges/>");
          assertFileContains(targetFile, "name=\"foo:canBar\"");
  
          OakMachine.Builder builderWithAbstract = TestUtil.fromPlan(obj()
                  .key("jcrNamespaces", arr(JcrNs.create("foo", "http://adamcin.net/foo")))
                  .key("jcrPrivileges", key("foo:canBar", key("abstract", true)))
                  .get());
          WebsterPrivilegesTarget targetWithAbstract = new WebsterPrivilegesTarget(targetFile);
          targetWithAbstract.setArchive(new FileArchive(new File("src/test/resources/filevault/onePrivRef")), writeBack);
          builderWithAbstract.build().initAndInspect(targetWithAbstract::perform);
  
          assertFileNotContains(targetFile, "<privileges/>");
          assertFileContains(targetFile, "name=\"foo:canBar\"");
          assertFileContains(targetFile, "abstract=\"true\"");
      }
test_case.class_method_signature: WebsterPrivilegesTargetTest.testWithExisting()
test_case.full_signature: @Test public void testWithExisting()
test_case.identifier: testWithExisting
test_case.invocations: exists delete exists deleteDirectory fromPlan get key key obj arr create arr setArchive initAndInspect build assertFileNotContains assertFileContains fromPlan get key key obj arr create key key setArchive initAndInspect build assertFileNotContains assertFileContains assertFileContains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWithExisting()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(WebsterPrivilegesTarget.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(WebsterPrivilegesTarget.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: targetFile
focal_class.modifier: private
focal_class.original_string: private File targetFile;
focal_class.type: File
focal_class.var_name: targetFile
focal_class.declarator: archive
focal_class.modifier: private
focal_class.original_string: private Archive archive;
focal_class.type: Archive
focal_class.var_name: archive
focal_class.declarator: writeBackDir
focal_class.modifier: private
focal_class.original_string: private File writeBackDir;
focal_class.type: File
focal_class.var_name: writeBackDir
focal_class.file: webster/src/main/java/net/adamcin/oakpal/webster/targets/WebsterPrivilegesTarget.java
focal_class.identifier: WebsterPrivilegesTarget
focal_class.interfaces: implements WebsterTarget, ArchiveAware
focal_class.class_method_signature: WebsterPrivilegesTarget.WebsterPrivilegesTarget(final File targetFile)
focal_class.full_signature:   WebsterPrivilegesTarget(final File targetFile)
focal_class.identifier: WebsterPrivilegesTarget
focal_class.parameters: (final File targetFile)
focal_class.signature:  WebsterPrivilegesTarget(final File targetFile)
focal_class.class_method_signature: WebsterPrivilegesTarget.setArchive(final Archive archive, final File writeBackDir)
focal_class.full_signature: @Override public void setArchive(final Archive archive, final File writeBackDir)
focal_class.identifier: setArchive
focal_class.modifiers: @Override public
focal_class.parameters: (final Archive archive, final File writeBackDir)
focal_class.return: void
focal_class.signature: void setArchive(final Archive archive, final File writeBackDir)
focal_class.class_method_signature: WebsterPrivilegesTarget.perform(final Session session)
focal_class.full_signature: @Override public void perform(final Session session)
focal_class.identifier: perform
focal_class.modifiers: @Override public
focal_class.parameters: (final Session session)
focal_class.return: void
focal_class.signature: void perform(final Session session)
focal_method.body: @Override
      public void setArchive(final Archive archive, final File writeBackDir) {
          this.archive = archive;
          this.writeBackDir = writeBackDir;
      }
focal_method.class_method_signature: WebsterPrivilegesTarget.setArchive(final Archive archive, final File writeBackDir)
focal_method.full_signature: @Override public void setArchive(final Archive archive, final File writeBackDir)
focal_method.identifier: setArchive
focal_method.modifiers: @Override public
focal_method.parameters: (final Archive archive, final File writeBackDir)
focal_method.return: void
focal_method.signature: void setArchive(final Archive archive, final File writeBackDir)