Package org.apache.ace.obr.storage.file.BundleFileStore

Examples of org.apache.ace.obr.storage.file.BundleFileStore.ResourceMetaData


        assert !m_metadata.generated() : "After changing the directory, the metadata should not be regenerated.";
    }
   
    @Test(groups = { UNIT })
    public void checkArtifactMetadataGeneration() {
      ResourceMetaData data = m_bundleStore.getArtifactMetaData("resource-1.0.3.xml");
    assert "resource".equals(data.getSymbolicName()) : "Generated symbolic name should be 'resource', was " + data.getSymbolicName();
    assert "1.0.3".equals(data.getVersion()) : "Generated version should be '1.0.3', was " + data.getVersion();
    assert "xml".equals(data.getExtension()) : "Extension should be 'xml', was " + data.getExtension();

    data = m_bundleStore.getArtifactMetaData("maven-artifact-2.3.5-SNAPSHOT.jar");
    assert "maven-artifact".equals(data.getSymbolicName()) : "Generated symbolic name should be 'maven-artifact', was " + data.getSymbolicName();
    assert "2.3.5-SNAPSHOT".equals(data.getVersion()) : "Generated version should be '2.3.5-SNAPSHOT', was " + data.getVersion();
    assert "jar".equals(data.getExtension()) : "Extension should be 'jar', was " + data.getExtension();
    }
View Full Code Here

TOP

Related Classes of org.apache.ace.obr.storage.file.BundleFileStore.ResourceMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.