Search in sources :

Example 6 with ApplicationMetadataFactoryImpl

use of org.apache.aries.application.impl.ApplicationMetadataFactoryImpl in project aries by apache.

the class ApplicationMetadataImplTest method testBasicMetadataCreation.

@Test
public void testBasicMetadataCreation() throws IOException {
    ApplicationMetadataFactory manager = new ApplicationMetadataFactoryImpl();
    ApplicationMetadata app = manager.parseApplicationMetadata(getClass().getResourceAsStream("/META-INF/APPLICATION.MF"));
    Assert.assertEquals("Travel Reservation", app.getApplicationName());
}
Also used : ApplicationMetadata(org.apache.aries.application.ApplicationMetadata) ApplicationMetadataFactory(org.apache.aries.application.ApplicationMetadataFactory) ApplicationMetadataFactoryImpl(org.apache.aries.application.impl.ApplicationMetadataFactoryImpl) Test(org.junit.Test)

Aggregations

ApplicationMetadataFactoryImpl (org.apache.aries.application.impl.ApplicationMetadataFactoryImpl)6 ApplicationMetadata (org.apache.aries.application.ApplicationMetadata)5 Test (org.junit.Test)5 InputStream (java.io.InputStream)3 Content (org.apache.aries.application.Content)3 ApplicationMetadataFactory (org.apache.aries.application.ApplicationMetadataFactory)2 VersionRange (org.apache.aries.util.VersionRange)2 Version (org.osgi.framework.Version)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 DeploymentMetadataFactory (org.apache.aries.application.DeploymentMetadataFactory)1 ServiceDeclaration (org.apache.aries.application.ServiceDeclaration)1 DeploymentMetadataFactoryImpl (org.apache.aries.application.impl.DeploymentMetadataFactoryImpl)1 BundleConverter (org.apache.aries.application.management.spi.convert.BundleConverter)1 Before (org.junit.Before)1