Skip to content

Commit

Permalink
G2-1559 Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
gdgib committed Apr 21, 2024
1 parent 79a2267 commit 9ece32a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.g2forge.reassert.core.test.ATestRepository;
import com.g2forge.reassert.maven.model.MavenLicense;
import com.g2forge.reassert.maven.model.MavenPOM;
import com.g2forge.reassert.maven.model.MavenProfile;
import com.g2forge.reassert.standard.model.contract.license.FamilyVersionLicense;
import com.g2forge.reassert.standard.model.contract.license.StandardLicenseFamily;

Expand Down Expand Up @@ -63,7 +64,7 @@ public void pom() {
final Graph<IVertex, IEdge> graph = getGraph();
final Artifact<MavenCoordinates> artifact = HReassertModel.findArtifact(graph, getCoordinates());
final Collection<MavenPOM> poms = HReassertModel.get(graph, artifact, false, Describes.class::isInstance, ITypeRef.of(MavenPOM.class)).stream().map(pom -> pom.toBuilder().clearDependencies().clearProperties().build()).collect(Collectors.toList());
HAssert.assertEquals(HCollection.asList(MavenPOM.builder().coordinates(getCoordinates().toBuilder().packaging(MavenPackaging.POM).build()).license(new MavenLicense("The Apache License, Version 2.0", "https://github.com/${alexandria.organization}/${alexandria.repository}/blob/${project.version}/LICENSE")).build()), poms);
HAssert.assertEquals(HCollection.asList(MavenPOM.builder().coordinates(getCoordinates().toBuilder().packaging(MavenPackaging.POM).build()).license(new MavenLicense("The Apache License, Version 2.0", "https://github.com/${alexandria.organization}/${alexandria.repository}/blob/${project.version}/LICENSE")).profile(new MavenProfile("release", null, null, null)).build()), poms);
}

@Test
Expand Down

0 comments on commit 9ece32a

Please sign in to comment.