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();
}