Skip to content

Commit

Permalink
Merge pull request #66 from gdgib/G2-1610-SimplifyIntegrationTesting
Browse files Browse the repository at this point in the history
G2-1610 Simplify reassert integration testing
  • Loading branch information
gdgib authored Jul 22, 2024
2 parents 489a434 + 1863cf8 commit 20f33c6
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4,957 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
import lombok.AccessLevel;
import lombok.Getter;

public class IntegrationAlexandria {
public class IntegrationReassert {
@Getter(lazy = true, value = AccessLevel.PROTECTED)
private static final TestGraph testGraph = computeTestGraph();

protected static TestGraph computeTestGraph() {
return new TestGraph(new Artifact<>(null, new GitCoordinates(null, "https://github.com/g2forge/alexandria.git", "0.0.18")), HCollection.emptyList());
return new TestGraph(new Artifact<>(null, new GitCoordinates(null, "https://github.com/g2forge/reassert.git", "reassert-test")), HCollection.emptyList());
}

@Test
public void complete() {
HAssert.assertEquals(new Resource(getClass(), "alexandria-complete.dot"), TestVisualizer.create().visualize(getTestGraph().getGraph()));
HAssert.assertEquals(new Resource(getClass(), "reassert-test-complete.dot"), TestVisualizer.create().visualize(getTestGraph().getGraph()));
}

@Test
public void licenses() {
final Graph<IVertex, IEdge> graph = HReassertModel.clone(getTestGraph().getGraph());
new StandardLicenseInheritanceVisitor().accept(graph);
HAssert.assertEquals(new Resource(getClass(), "alexandria-licenses.dot"), TestVisualizer.create().visualize(HReassertModel.asLicenseGraph(graph)));
HAssert.assertEquals(new Resource(getClass(), "reassert-test-licenses.dot"), TestVisualizer.create().visualize(HReassertModel.asLicenseGraph(graph)));
}
}
Loading

0 comments on commit 20f33c6

Please sign in to comment.