assertEquals(1, result.getV2().size());
}
@Test
public void testTreeTwoChildSecondHasComments() {
final MavenDependencyTreeParser parser = new MavenDependencyTreeParser();
final String input = "org.drools:drools-camel-server:war:5.4.0-SNAPSHOT\n" +
"+- org.drools:knowledge-api:jar:5.4.0-SNAPSHOT:compile (version managed from 3.1)\n" +
"+- org.drools:drools-core:jar:5.4.0-SNAPSHOT:compile\n";
final MavenDependencyTreeParser.Pair<Collection<MavenArtifact>, Collection<MavenArtifact>> result;
result = parser.buildDependencyTreeAndList(input);
assertNotNull(result);
assertNotNull(result.getV1());
assertNotNull(result.getV2());
assertEquals(2, result.getV1().size());