test_class.file: core/src/test/java/net/adamcin/oakpal/core/DefaultPackagingServiceTest.java
test_class.identifier: DefaultPackagingServiceTest
test_case.body: @Test
      public void testOpen() throws Exception {
          final DefaultPackagingService service = new DefaultPackagingService();
          File testPack = TestPackageUtil.prepareTestPackage("test-package-with-etc.zip");
          new OakMachine.Builder().build().adminInitAndInspect(session -> {
              JcrPackageManager manager = service.getPackageManager(session);
              JcrPackage uploaded = null;
              JcrPackage opened = null;
              try {
                  uploaded = manager.upload(testPack, false, true, null);
                  opened = service.open(uploaded.getNode(), false);
                  assertTrue("should be valid package", opened.isValid());
              } finally {
                  if (uploaded != null) {
                      uploaded.close();
                  }
                  if (opened != null) {
                      opened.close();
                  }
              }
          });
      }
test_case.class_method_signature: DefaultPackagingServiceTest.testOpen()
test_case.full_signature: @Test public void testOpen()
test_case.identifier: testOpen
test_case.invocations: prepareTestPackage adminInitAndInspect build getPackageManager upload open getNode assertTrue isValid close close
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOpen()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(DefaultPackagingService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(DefaultPackagingService.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: JCR_PACK_MAN_IMPL_CLASS = "org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl"
focal_class.modifier: private static final
focal_class.original_string: private static final String JCR_PACK_MAN_IMPL_CLASS = "org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl";
focal_class.type: String
focal_class.var_name: JCR_PACK_MAN_IMPL_CLASS
focal_class.declarator: jcrPackageManagerClazz
focal_class.original_string: Class<? extends JcrPackageManager> jcrPackageManagerClazz;
focal_class.type: Class<? extends JcrPackageManager>
focal_class.var_name: jcrPackageManagerClazz
focal_class.file: core/src/main/java/net/adamcin/oakpal/core/DefaultPackagingService.java
focal_class.identifier: DefaultPackagingService
focal_class.interfaces: implements Packaging
focal_class.class_method_signature: DefaultPackagingService.DefaultPackagingService()
focal_class.full_signature: @SuppressWarnings("WeakerAccess")  DefaultPackagingService()
focal_class.identifier: DefaultPackagingService
focal_class.modifiers: @SuppressWarnings("WeakerAccess")
focal_class.parameters: ()
focal_class.signature:  DefaultPackagingService()
focal_class.class_method_signature: DefaultPackagingService.DefaultPackagingService(final @NotNull ClassLoader classLoader)
focal_class.full_signature:   DefaultPackagingService(final @NotNull ClassLoader classLoader)
focal_class.identifier: DefaultPackagingService
focal_class.parameters: (final @NotNull ClassLoader classLoader)
focal_class.signature:  DefaultPackagingService(final @NotNull ClassLoader classLoader)
focal_class.class_method_signature: DefaultPackagingService.getPackageManager()
focal_class.full_signature: @Override public PackageManager getPackageManager()
focal_class.identifier: getPackageManager
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: PackageManager
focal_class.signature: PackageManager getPackageManager()
focal_class.class_method_signature: DefaultPackagingService.getPackageManager(final Session session)
focal_class.full_signature: @Override public JcrPackageManager getPackageManager(final Session session)
focal_class.identifier: getPackageManager
focal_class.modifiers: @Override public
focal_class.parameters: (final Session session)
focal_class.return: JcrPackageManager
focal_class.signature: JcrPackageManager getPackageManager(final Session session)
focal_class.class_method_signature: DefaultPackagingService.createPackageDefinition(final Node defNode)
focal_class.full_signature: @Override public JcrPackageDefinition createPackageDefinition(final Node defNode)
focal_class.identifier: createPackageDefinition
focal_class.modifiers: @Override public
focal_class.parameters: (final Node defNode)
focal_class.return: JcrPackageDefinition
focal_class.signature: JcrPackageDefinition createPackageDefinition(final Node defNode)
focal_class.class_method_signature: DefaultPackagingService.open(final Node node, final boolean allowInvalid)
focal_class.full_signature: @Override public JcrPackage open(final Node node, final boolean allowInvalid)
focal_class.identifier: open
focal_class.modifiers: @Override public
focal_class.parameters: (final Node node, final boolean allowInvalid)
focal_class.return: JcrPackage
focal_class.signature: JcrPackage open(final Node node, final boolean allowInvalid)
focal_method.body: @Override
      public JcrPackage open(final Node node, final boolean allowInvalid) throws RepositoryException {
          return PackagingService.open(node, allowInvalid);
      }
focal_method.class_method_signature: DefaultPackagingService.open(final Node node, final boolean allowInvalid)
focal_method.full_signature: @Override public JcrPackage open(final Node node, final boolean allowInvalid)
focal_method.identifier: open
focal_method.invocations: open
focal_method.modifiers: @Override public
focal_method.parameters: (final Node node, final boolean allowInvalid)
focal_method.return: JcrPackage
focal_method.signature: JcrPackage open(final Node node, final boolean allowInvalid)