Skip to content

Commit

Permalink
Extended toString test for dependency exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Ekryd committed Apr 3, 2021
1 parent 97a1d7b commit 10797b1
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
6 changes: 6 additions & 0 deletions sorter/src/test/resources/Real1_expected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
<artifactId>cglib</artifactId>
<version>2.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>asm</groupId>
<artifactId>asm-util</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cheesymock</groupId>
Expand Down
6 changes: 6 additions & 0 deletions sorter/src/test/resources/Real1_expected_keepBlankLines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
<artifactId>cglib</artifactId>
<version>2.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>asm</groupId>
<artifactId>asm-util</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cheesymock</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
<artifactId>cglib</artifactId>
<version>2.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>asm</groupId>
<artifactId>asm-util</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cheesymock</groupId>
Expand Down
24 changes: 24 additions & 0 deletions sorter/src/test/resources/Real1_expected_toString.txt
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,30 @@ HierarchyWrapper{
UnsortedWrapper{content=[Text: test]}
}
}
HierarchyWrapper{
elementContent=SortedWrapper{element=[Element: <exclusions [Namespace: http://maven.apache.org/POM/4.0.0]/>]}
children=
HierarchyWrapper{
elementContent=ExclusionSortedWrapper{childElementSorter=ChildElementSorter{childElementTexts=[asm, asm-util]}}
children=
HierarchyWrapper{
elementContent=SortedWrapper{element=[Element: <groupId [Namespace: http://maven.apache.org/POM/4.0.0]/>]}
children=
HierarchyWrapper{
otherContentList=
UnsortedWrapper{content=[Text: asm]}
}
}
HierarchyWrapper{
elementContent=SortedWrapper{element=[Element: <artifactId [Namespace: http://maven.apache.org/POM/4.0.0]/>]}
children=
HierarchyWrapper{
otherContentList=
UnsortedWrapper{content=[Text: asm-util]}
}
}
}
}
}
HierarchyWrapper{
elementContent=DependencySortedWrapper{childElementSorter=ChildElementSorter{childElementTexts=[test, cheesymock, cheesymock]}}
Expand Down
8 changes: 7 additions & 1 deletion sorter/src/test/resources/Real1_input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
<artifactId>cglib</artifactId>
<version>2.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>asm</groupId>
<artifactId>asm-util</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cheesymock</groupId>
Expand Down Expand Up @@ -187,4 +193,4 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<compileSource>1.6</compileSource>
</properties>
</project>
</project>

0 comments on commit 10797b1

Please sign in to comment.