@@ -59,17 +59,6 @@ void parseCheckstyle() {
59
59
assertThat (parsingResult .sourceFiles ().stream ().map (sf -> sf .getSourcePath ().toString ()).toList ()).contains ("checkstyle/rules.xml" );
60
60
assertThat (parsingResult .sourceFiles ().stream ().map (sf -> sf .getSourcePath ().toString ()).toList ()).contains ("checkstyle/suppressions.xml" );
61
61
}
62
- @ Test
63
- @ DisplayName ("parse4Modules" )
64
- void parse4Modules () {
65
- Path baseDir = getMavenProject ("4-modules" );
66
- List <Resource > resources = projectScanner .scan (baseDir );
67
-
68
- assertThat (resources ).hasSize (4 );
69
-
70
- RewriteProjectParsingResult parsingResult = sut .parse (baseDir , resources , new InMemoryExecutionContext (t -> {throw new RuntimeException (t );}));
71
- assertThat (parsingResult .sourceFiles ()).hasSize (4 );
72
- }
73
62
74
63
@ Test
75
64
@ DisplayName ("testFailingProject" )
@@ -109,24 +98,6 @@ void parse4Modules() {
109
98
assertThat (parsingResult .sourceFiles ()).hasSize (4 );
110
99
}
111
100
112
- @ Autowired
113
- RewriteMavenProjectParser mavenProjectParser ;
114
-
115
- @ Test
116
- @ DisplayName ("parseResources" )
117
- void parseResources () {
118
- Path baseDir = getMavenProject ("resources" );
119
- List <Resource > resources = projectScanner .scan (baseDir );
120
-
121
- RewriteProjectParsingResult parsingResult1 = mavenProjectParser .parse (baseDir );
122
- assertThat (parsingResult1 .sourceFiles ()).hasSize (5 );
123
-
124
- RewriteProjectParsingResult parsingResult = sut .parse (baseDir , resources , new InMemoryExecutionContext (t -> {
125
- throw new RuntimeException (t );
126
- }));
127
- assertThat (parsingResult .sourceFiles ()).hasSize (5 );
128
- }
129
-
130
101
private Path getMavenProject (String s ) {
131
102
return Path .of ("./testcode/maven-projects/" ).resolve (s ).toAbsolutePath ().normalize ();
132
103
}
0 commit comments