test_class.declarator: DUMMY_ID = new PackageId("someGroup", "someName", "someVersion")
test_class.modifier: private static final
test_class.original_string: private static final PackageId DUMMY_ID = new PackageId("someGroup", "someName", "someVersion");
test_class.type: PackageId
test_class.var_name: DUMMY_ID
test_class.file: vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSRegisteredPackageTest.java
test_class.identifier: FSRegisteredPackageTest
test_case.body: @Test
      public void testGetPackageFromTruncatedFile() throws IOException {
          File packageFile = getTempFile("test-package-truncated.zip");
          try (RegisteredPackage regPack = new FSRegisteredPackage(newRegistry(packageFile), newInstallState(packageFile));
                  VaultPackage vltPack = regPack.getPackage()) {
              assertNotNull(vltPack);
              assertNull(vltPack.getArchive());
          } catch (IOException e) {
              fail("should not throw any exception, but thrown: " + e.getMessage());
          } finally {
              packageFile.delete();
          }
      }
test_case.class_method_signature: FSRegisteredPackageTest.testGetPackageFromTruncatedFile()
test_case.full_signature: @Test public void testGetPackageFromTruncatedFile()
test_case.identifier: testGetPackageFromTruncatedFile
test_case.invocations: getTempFile newRegistry newInstallState getPackage assertNotNull assertNull getArchive fail getMessage delete
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetPackageFromTruncatedFile()
focal_class.declarator: log = LoggerFactory.getLogger(FSPackageRegistry.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(FSPackageRegistry.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: registry
focal_class.modifier: private
focal_class.original_string: private FSPackageRegistry registry;
focal_class.type: FSPackageRegistry
focal_class.var_name: registry
focal_class.declarator: vltPkg = null
focal_class.modifier: private
focal_class.original_string: private VaultPackage vltPkg = null;
focal_class.type: VaultPackage
focal_class.var_name: vltPkg
focal_class.declarator: id
focal_class.modifier: private
focal_class.original_string: private PackageId id;
focal_class.type: PackageId
focal_class.var_name: id
focal_class.declarator: packageProperties
focal_class.modifier: private
focal_class.original_string: private PackageProperties packageProperties;
focal_class.type: PackageProperties
focal_class.var_name: packageProperties
focal_class.declarator: dependencies
focal_class.modifier: private
focal_class.original_string: private Dependency[] dependencies;
focal_class.type: Dependency[]
focal_class.var_name: dependencies
focal_class.declarator: filter
focal_class.modifier: private
focal_class.original_string: private WorkspaceFilter filter;
focal_class.type: WorkspaceFilter
focal_class.var_name: filter
focal_class.declarator: size
focal_class.modifier: private
focal_class.original_string: private long size;
focal_class.type: long
focal_class.var_name: size
focal_class.file: vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/registry/impl/FSRegisteredPackage.java
focal_class.identifier: FSRegisteredPackage
focal_class.interfaces: implements RegisteredPackage
focal_class.class_method_signature: FSRegisteredPackage.FSRegisteredPackage(FSPackageRegistry registry, FSInstallState installState)
focal_class.full_signature: public  FSRegisteredPackage(FSPackageRegistry registry, FSInstallState installState)
focal_class.identifier: FSRegisteredPackage
focal_class.modifiers: public
focal_class.parameters: (FSPackageRegistry registry, FSInstallState installState)
focal_class.signature:  FSRegisteredPackage(FSPackageRegistry registry, FSInstallState installState)
focal_class.class_method_signature: FSRegisteredPackage.getId()
focal_class.full_signature: @NotNull @Override public PackageId getId()
focal_class.identifier: getId
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: PackageId
focal_class.signature: PackageId getId()
focal_class.class_method_signature: FSRegisteredPackage.getPackage()
focal_class.full_signature: @NotNull @Override public VaultPackage getPackage()
focal_class.identifier: getPackage
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: VaultPackage
focal_class.signature: VaultPackage getPackage()
focal_class.class_method_signature: FSRegisteredPackage.isInstalled()
focal_class.full_signature: @Override public boolean isInstalled()
focal_class.identifier: isInstalled
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isInstalled()
focal_class.class_method_signature: FSRegisteredPackage.getSize()
focal_class.full_signature: @Override public long getSize()
focal_class.identifier: getSize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getSize()
focal_class.class_method_signature: FSRegisteredPackage.getInstallationTime()
focal_class.full_signature: @Nullable @Override public Calendar getInstallationTime()
focal_class.identifier: getInstallationTime
focal_class.modifiers: @Nullable @Override public
focal_class.parameters: ()
focal_class.return: Calendar
focal_class.signature: Calendar getInstallationTime()
focal_class.class_method_signature: FSRegisteredPackage.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: FSRegisteredPackage.compareTo(RegisteredPackage o)
focal_class.full_signature: @Override public int compareTo(RegisteredPackage o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (RegisteredPackage o)
focal_class.return: int
focal_class.signature: int compareTo(RegisteredPackage o)
focal_class.class_method_signature: FSRegisteredPackage.getDependencies()
focal_class.full_signature: @Override public Dependency[] getDependencies()
focal_class.identifier: getDependencies
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Dependency[]
focal_class.signature: Dependency[] getDependencies()
focal_class.class_method_signature: FSRegisteredPackage.getWorkspaceFilter()
focal_class.full_signature: @Override public WorkspaceFilter getWorkspaceFilter()
focal_class.identifier: getWorkspaceFilter
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: WorkspaceFilter
focal_class.signature: WorkspaceFilter getWorkspaceFilter()
focal_class.class_method_signature: FSRegisteredPackage.getPackageProperties()
focal_class.full_signature: @Override public PackageProperties getPackageProperties()
focal_class.identifier: getPackageProperties
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: PackageProperties
focal_class.signature: PackageProperties getPackageProperties()
focal_method.body: @NotNull
      @Override
      public VaultPackage getPackage() throws IOException {
          if (this.vltPkg == null) {
              this.vltPkg = registry.openPackageFile(getId());
          }
          return this.vltPkg;
      }
focal_method.class_method_signature: FSRegisteredPackage.getPackage()
focal_method.full_signature: @NotNull @Override public VaultPackage getPackage()
focal_method.identifier: getPackage
focal_method.invocations: openPackageFile getId
focal_method.modifiers: @NotNull @Override public
focal_method.parameters: ()
focal_method.return: VaultPackage
focal_method.signature: VaultPackage getPackage()