Skip to content

Commit

Permalink
[MPH-183] Rename test to better match behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovds committed Mar 29, 2024
1 parent 941b502 commit 71c2989
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void testUpdateWithImportedFrom_dependencyLocationAndBomLocationAreNull_dependen
}

@Test
void testUpdateWithImportedFrom_bomAndDependencyHaveSameSource_dependencyRootFound() {
void testUpdateWithImportedFrom_dependencyManagementAndDependencyHaveSameSource_dependencyImportedFromSameSource() {
final InputSource source = new InputSource("SINGLE_SOURCE", "");
final Dependency dependency = Dependency.newBuilder()
.location("", new InputLocation(1, 1, source))
Expand All @@ -49,7 +49,8 @@ void testUpdateWithImportedFrom_bomAndDependencyHaveSameSource_dependencyRootFou
final Dependency result = DefaultDependencyManagementImporter.updateWithImportedFrom(dependency, bom);

assertThat(result).isNotNull();
assertThat(result.getImportedFrom()).isEqualTo(bom.getLocation(""));
assertThat(result.getImportedFrom().toString())
.isEqualTo(bom.getLocation("").toString());
}

@Test
Expand Down

0 comments on commit 71c2989

Please sign in to comment.