From e931aeae51ca121efe9b2ec65a80dc04bc5baa5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Kr=C3=BCger?= Date: Wed, 1 Nov 2023 14:43:48 +0100 Subject: [PATCH] Use ParserParityTestHelper --- .../parsers/RewriteProjectParserIntegrationTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserIntegrationTest.java b/sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserIntegrationTest.java index cd9ee8bbc..fe24a3231 100644 --- a/sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserIntegrationTest.java +++ b/sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserIntegrationTest.java @@ -24,6 +24,7 @@ import org.springframework.sbm.boot.autoconfigure.SbmSupportRewriteConfiguration; import org.springframework.sbm.parsers.maven.RewriteMavenProjectParser; import org.springframework.sbm.parsers.maven.SbmTestConfiguration; +import org.springframework.sbm.test.util.ParserParityTestHelper; import org.springframework.sbm.test.util.TestProjectHelper; import java.nio.file.Path; @@ -76,12 +77,11 @@ void parseResources() { @DisplayName("parse4Modules") void parse4Modules() { Path baseDir = TestProjectHelper.getMavenProject("4-modules"); - List resources = projectScanner.scan(baseDir); - - assertThat(resources).hasSize(4); - - RewriteProjectParsingResult parsingResult = sut.parse(baseDir, resources); - assertThat(parsingResult.sourceFiles()).hasSize(4); + ParserParityTestHelper.scanProjectDir(baseDir) + .verifyParity((comparingParsingResult, testedParsingResult) -> { + assertThat(comparingParsingResult.sourceFiles()).hasSize(4); + assertThat(testedParsingResult.sourceFiles()).hasSize(4); + }); } }