File tree 2 files changed +4
-8
lines changed
src/test/java/org/apache/maven/report/projectinfo
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -428,12 +428,6 @@ under the License.
428
428
<artifactId >commons-validator</artifactId >
429
429
<version >1.7</version >
430
430
</dependency >
431
- <dependency >
432
- <groupId >commons-io</groupId >
433
- <artifactId >commons-io</artifactId >
434
- <version >2.12.0</version >
435
- <scope >test</scope >
436
- </dependency >
437
431
</dependencies >
438
432
439
433
<build >
Original file line number Diff line number Diff line change 21
21
import java .io .File ;
22
22
import java .lang .reflect .Field ;
23
23
import java .net .URL ;
24
+ import java .nio .charset .StandardCharsets ;
25
+ import java .nio .file .Files ;
24
26
import java .util .Collections ;
25
27
26
28
import com .meterware .httpunit .GetMethodWebRequest ;
27
29
import com .meterware .httpunit .TextBlock ;
28
30
import com .meterware .httpunit .WebConversation ;
29
31
import com .meterware .httpunit .WebRequest ;
30
32
import com .meterware .httpunit .WebResponse ;
31
- import org . apache . commons . io . FileUtils ;
33
+
32
34
import org .apache .maven .plugin .testing .SilentLog ;
33
35
import org .apache .maven .report .projectinfo .stubs .SubProject1Stub ;
34
36
import org .codehaus .plexus .util .ReflectionUtils ;
@@ -122,6 +124,6 @@ protected String getPOM() {
122
124
123
125
assertFalse (
124
126
"Variable 'sitePublishLocation' should be interpolated" ,
125
- FileUtils . readFileToString (getGeneratedReport ("modules.html" )).contains ("sitePublishLocation" ));
127
+ new String ( Files . readAllBytes (getGeneratedReport ("modules.html" ). toPath ()), StandardCharsets . UTF_8 ).contains ("sitePublishLocation" ));
126
128
}
127
129
}
You can’t perform that action at this time.
0 commit comments