Remove unneeded dependency to WireMock

This commit is contained in:
Andreas Dangel
2024-01-05 13:36:04 +01:00
parent 7b24edc0db
commit 35062c3caf
5 changed files with 5 additions and 28 deletions

View File

@@ -45,11 +45,6 @@
<artifactId>slf4j-simple</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>

View File

@@ -68,11 +68,6 @@
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>

View File

@@ -86,11 +86,6 @@
<artifactId>slf4j-simple</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>

View File

@@ -7,8 +7,8 @@ package net.sourceforge.pmd.cache.internal;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import com.google.common.io.Files;
import java.nio.file.Files;
import java.nio.file.Path;
class RawFileFingerprinterTest extends AbstractClasspathEntryFingerprinterTest {
@@ -29,9 +29,8 @@ class RawFileFingerprinterTest extends AbstractClasspathEntryFingerprinterTest {
@Override
protected File createValidNonEmptyFile() throws IOException {
File file = tempDir.resolve("Foo.class").toFile();
Files.write("some content", file, StandardCharsets.UTF_8);
return file;
Path file = tempDir.resolve("Foo.class");
Files.write(file, "some content".getBytes(StandardCharsets.UTF_8));
return file.toFile();
}
}

View File

@@ -863,13 +863,6 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>2.35.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>