use of org.alfresco.repo.module.ModuleDetailsImpl in project alfresco-remote-api by Alfresco.
the class ModulePackageTest method testConstructor.
@Test
public void testConstructor() throws IOException {
ModuleDetails details = new ModuleDetailsImpl(props);
ModulePackage modulePackage = ModulePackage.fromModuleDetails(details);
assertNotNull(modulePackage);
assertEquals(props.getProperty(ModuleDetails.PROP_ID), modulePackage.getId());
assertEquals(props.getProperty(ModuleDetails.PROP_VERSION), modulePackage.getVersion());
assertEquals(props.getProperty(ModuleDetails.PROP_REPO_VERSION_MIN), modulePackage.getVersionMin());
assertEquals(props.getProperty(ModuleDetails.PROP_REPO_VERSION_MAX), modulePackage.getVersionMax());
assertEquals(props.getProperty(ModuleDetails.PROP_INSTALL_STATE), modulePackage.getInstallState().toString());
}
Aggregations