From ad9f0f79e66c687c58c090c1496147ade4290cf9 Mon Sep 17 00:00:00 2001 From: asafambar Date: Thu, 28 Dec 2023 12:38:46 +0200 Subject: [PATCH] fix --- .../com/jfrog/mavendeptree/UtilsTests.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/test/java/com/jfrog/mavendeptree/UtilsTests.java b/src/test/java/com/jfrog/mavendeptree/UtilsTests.java index db5295d..d83bb5d 100644 --- a/src/test/java/com/jfrog/mavendeptree/UtilsTests.java +++ b/src/test/java/com/jfrog/mavendeptree/UtilsTests.java @@ -24,22 +24,22 @@ public class UtilsTests { @Test public void testPopulateDependencyMapNoChildren() { - DependencyNode root = createDependency("root-group", "root-artifact", "root-version", null,""); + DependencyNode root = createDependency("root-group", "root-artifact", "root-version", null, ""); runPopulateDependencyMap(root, 1); } @Test public void testPopulateDependencyMapDuplicateChildren() { - DefaultDependencyNode root = createDependency("root-group", "root-artifact", "root-version", null,""); + DefaultDependencyNode root = createDependency("root-group", "root-artifact", "root-version", null, ""); // Root's children - DefaultDependencyNode firstChild = createDependency("child1-group", "child1-artifact", "child1-version", "scope1",""); - DefaultDependencyNode secondChild = createDependency("child2-group", "child2-artifact", "child2-version", "scope2","type2"); + DefaultDependencyNode firstChild = createDependency("child1-group", "child1-artifact", "child1-version", "scope1", ""); + DefaultDependencyNode secondChild = createDependency("child2-group", "child2-artifact", "child2-version", "scope2", "type2"); root.setChildren(Lists.newArrayList(firstChild, secondChild)); // First child's children - DefaultDependencyNode thirdChild = createDependency("child3-group", "child3-artifact", "child3-version", "scope3",""); - DefaultDependencyNode secondsChildWithOtherScope = createDependency("child2-group", "child2-artifact", "child2-version", "other-scope","other-type"); + DefaultDependencyNode thirdChild = createDependency("child3-group", "child3-artifact", "child3-version", "scope3", ""); + DefaultDependencyNode secondsChildWithOtherScope = createDependency("child2-group", "child2-artifact", "child2-version", "other-scope", "other-type"); firstChild.setChildren(Lists.newArrayList(secondsChildWithOtherScope, thirdChild)); @@ -65,7 +65,7 @@ public void testPopulateDependencyMapDuplicateChildren() { @Test public void testGetNodeId() { - Artifact artifact = createArtifact("group", "artifact", "1.0.0", "scope",""); + Artifact artifact = createArtifact("group", "artifact", "1.0.0", "scope", ""); assertEquals(getGavString(artifact), "group:artifact:1.0.0"); } @@ -73,8 +73,8 @@ private Artifact createArtifact(String groupId, String artifactId, String versio return new DefaultArtifact(groupId, artifactId, version, scope, type, "", null); } - private DefaultDependencyNode createDependency(String groupId, String artifactId, String version, String scope,String type) { - Artifact artifact = createArtifact(groupId, artifactId, version, scope,type); + private DefaultDependencyNode createDependency(String groupId, String artifactId, String version, String scope, String type) { + Artifact artifact = createArtifact(groupId, artifactId, version, scope, type); return new DefaultDependencyNode(artifact); }