"target/test-repositorys/com/example/test/test-snapshot-artifact-module-a" );
ReadMetadataRequest readMetadataRequest =
new ReadMetadataRequest().repositoryId( TEST_SNAP_REPO_ID ).namespace( "com.example.test" ).projectId(
"test-snapshot-artifact-module-a" ).projectVersion( "1.1-SNAPSHOT" );
ProjectVersionMetadata metadata = storage.readProjectVersionMetadata( readMetadataRequest );
MavenProjectFacet facet = (MavenProjectFacet) metadata.getFacet( MavenProjectFacet.FACET_ID );
assertEquals( "jar", facet.getPackaging() );
assertEquals( "com.example.test", facet.getParent().getGroupId() );
assertEquals( "test-snapshot-artifact-root", facet.getParent().getArtifactId() );
assertEquals( "1.1-SNAPSHOT", facet.getParent().getVersion() );
assertEquals( "test-snapshot-artifact-module-a", facet.getArtifactId() );
assertEquals( "com.example.test", facet.getGroupId() );
assertNull( metadata.getCiManagement() );
assertNotNull( metadata.getDescription() );
checkApacheLicense( metadata );
assertEquals( "1.1-SNAPSHOT", metadata.getId() );
assertEquals( "Test Snapshot Artifact :: Module A", metadata.getName() );
String path = "test-snapshot-artifact/trunk/test-snapshot-artifact-module-a";
assertEquals( TEST_SCM_CONN_BASE + path, metadata.getScm().getConnection() );
assertEquals( TEST_SCM_DEV_CONN_BASE + path, metadata.getScm().getDeveloperConnection() );
assertEquals( TEST_SCM_URL_BASE + path, metadata.getScm().getUrl() );
List<Dependency> dependencies = metadata.getDependencies();
assertEquals( 2, dependencies.size() );
assertDependency( dependencies.get( 0 ), "commons-io", "commons-io", "1.4" );
assertDependency( dependencies.get( 1 ), "junit", "junit", "3.8.1", "test" );
List<String> paths = new ArrayList<>();