AppPackage implements Closeable { public Set<String> getRequiredProperties() { return Collections.unmodifiableSet(requiredProperties); } AppPackage(File file);  AppPackage(InputStream input);  AppPackage(File file, File contentFolder, boolean processAppDirectory);  AppPackage(InputStream input, File contentFolder, boolean processAppDirectory);  AppPackage(File file, boolean processAppDirectory);  AppPackage(InputStream input, boolean processAppDirectory); static void extractToDirectory(File directory, File appPackageFile); static void createAppPackageFile(File fileToBeCreated, File directory); File tempDirectory(); @Override void close(); void cleanContent(); String getAppPackageName(); String getAppPackageVersion(); String getAppPackageGroupId(); String getAppPackageDescription(); String getAppPackageDisplayName(); String getDtEngineVersion(); List<String> getClassPath(); Collection<String> getConfigs(); File resourcesDirectory(); List<AppInfo> getApplications(); List<String> getAppJars(); List<String> getAppJsonFiles(); List<String> getAppPropertiesFiles(); Set<String> getRequiredProperties(); Map<String, PropertyInfo> getDefaultProperties(); void processAppDirectory(boolean skipJars); static final String ATTRIBUTE_DT_ENGINE_VERSION; static final String ATTRIBUTE_DT_APP_PACKAGE_NAME; static final String ATTRIBUTE_DT_APP_PACKAGE_VERSION; static final String ATTRIBUTE_DT_APP_PACKAGE_GROUP_ID; static final String ATTRIBUTE_CLASS_PATH; static final String ATTRIBUTE_DT_APP_PACKAGE_DISPLAY_NAME; static final String ATTRIBUTE_DT_APP_PACKAGE_DESCRIPTION; }
@Test public void testRequiredProperties() { Set<String> requiredProperties = ap.getRequiredProperties(); Assert.assertEquals(2, requiredProperties.size()); String[] rp = requiredProperties.toArray(new String[]{}); Assert.assertEquals("dt.test.required.1", rp[0]); Assert.assertEquals("dt.test.required.2", rp[1]); }