Skip to content

Commit

Permalink
[MPIR-453] Replace Commons IO in favor of standard APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Nov 17, 2023
1 parent 4d94edc commit 60cfdea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,6 @@ under the License.
<artifactId>commons-validator</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.12.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@
import java.io.File;
import java.lang.reflect.Field;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.Collections;

import com.meterware.httpunit.GetMethodWebRequest;
import com.meterware.httpunit.TextBlock;
import com.meterware.httpunit.WebConversation;
import com.meterware.httpunit.WebRequest;
import com.meterware.httpunit.WebResponse;
import org.apache.commons.io.FileUtils;

import org.apache.maven.plugin.testing.SilentLog;
import org.apache.maven.report.projectinfo.stubs.SubProject1Stub;
import org.codehaus.plexus.util.ReflectionUtils;
Expand Down Expand Up @@ -122,6 +124,6 @@ protected String getPOM() {

assertFalse(
"Variable 'sitePublishLocation' should be interpolated",
FileUtils.readFileToString(getGeneratedReport("modules.html")).contains("sitePublishLocation"));
new String(Files.readAllBytes(getGeneratedReport("modules.html").toPath()), StandardCharsets.UTF_8).contains("sitePublishLocation"));
}
}

0 comments on commit 60cfdea

Please sign in to comment.