Skip to content

Commit

Permalink
Fixing instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Ekryd committed May 19, 2024
1 parent 8c584c8 commit ff4d954
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sorter/src/test/java/sortpom/util/TestHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class TestHandler {
this.encoding = pluginParameters.encoding;
this.testpom = pluginParameters.pomFile;
backupFile = new File(testpom.getAbsolutePath() + pluginParameters.backupFileExtension);
sortPomImpl.setup(createDummyLog(), pluginParameters);
}

List<String> getInfoLogger() {
Expand Down Expand Up @@ -154,7 +155,6 @@ void performSortThatDidNotSort() {
}

private void performSorting() {
sortPomImpl.setup(createDummyLog(), pluginParameters);
sortPomImpl.sortPom();
}

Expand Down Expand Up @@ -222,16 +222,11 @@ void performSortThatTestsTimestamps() {
}

private void performVerifyWithSort() {
var sortPomImpl = new SortPomImpl();
sortPomImpl.setup(createDummyLog(), pluginParameters);

sortPomImpl.verifyPom();
}

private XmlOrderedResult isVerifyOk()
throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
sortPomImpl.setup(createDummyLog(), pluginParameters);

var getVerificationResult = SortPomImpl.class.getDeclaredMethod("getVerificationResult");
getVerificationResult.setAccessible(true);

Expand Down

0 comments on commit ff4d954

Please sign in to comment.