Skip to content

Commit f931de8

Browse files
Bump org.hamcrest:hamcrest-library from 2.2 to 3.0 (#527)
* Bump org.hamcrest:hamcrest-library from 2.2 to 3.0 Bumps [org.hamcrest:hamcrest-library](https://github.com/hamcrest/JavaHamcrest) from 2.2 to 3.0. - [Release notes](https://github.com/hamcrest/JavaHamcrest/releases) - [Changelog](https://github.com/hamcrest/JavaHamcrest/blob/master/CHANGES.md) - [Commits](hamcrest/JavaHamcrest@v2.2...v3.0) --- updated-dependencies: - dependency-name: org.hamcrest:hamcrest-library dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Latest best praticles for java projects * Stop using hamcrest assertions --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marvin Froeder <[email protected]>
1 parent 8e9c9ce commit f931de8

File tree

18 files changed

+38
-62
lines changed

18 files changed

+38
-62
lines changed

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,12 @@
431431
<configuration>
432432
<rules>
433433
<dependencyConvergence></dependencyConvergence>
434+
<bannedDependencies>
435+
<excludes>
436+
<exclude>org.hamcrest:*:*:*:*</exclude>
437+
</excludes>
438+
<searchTransitive>false</searchTransitive>
439+
</bannedDependencies>
434440
</rules>
435441
</configuration>
436442
</execution>

querydsl-examples/querydsl-example-jpa-guice/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@
7474
<artifactId>h2</artifactId>
7575
<scope>test</scope>
7676
</dependency>
77-
78-
<!-- TEST dependencies -->
79-
<dependency>
80-
<groupId>org.junit.vintage</groupId>
81-
<artifactId>junit-vintage-engine</artifactId>
82-
</dependency>
8377
</dependencies>
8478

8579
<pluginRepositories>

querydsl-examples/querydsl-example-jpa-quarkus/src/test/java/com/querydsl/example/FruitsEndpointTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import static io.restassured.RestAssured.given;
44
import static org.hamcrest.CoreMatchers.containsString;
5-
import static org.hamcrest.core.IsNot.not;
5+
import static org.hamcrest.Matchers.not;
66

77
import io.quarkus.test.junit.QuarkusTest;
88
import org.junit.jupiter.api.Test;

querydsl-examples/querydsl-example-jpa-spring/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
<groupId>org.springframework.boot</groupId>
5656
<artifactId>spring-boot-starter-test</artifactId>
5757
<scope>test</scope>
58+
<exclusions>
59+
<exclusion>
60+
<groupId>org.hamcrest</groupId>
61+
<artifactId>hamcrest</artifactId>
62+
</exclusion>
63+
</exclusions>
5864
</dependency>
5965
</dependencies>
6066

querydsl-examples/querydsl-example-kotlin-mongodb/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
<groupId>org.junit.vintage</groupId>
3636
<artifactId>junit-vintage-engine</artifactId>
3737
</exclusion>
38+
<exclusion>
39+
<groupId>org.hamcrest</groupId>
40+
<artifactId>hamcrest</artifactId>
41+
</exclusion>
3842
</exclusions>
3943
</dependency>
4044
<dependency>

querydsl-examples/querydsl-example-r2dbc-sql-codegen/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@
6161
</dependency>
6262

6363
<!-- TEST dependencies -->
64-
<dependency>
65-
<groupId>org.junit.vintage</groupId>
66-
<artifactId>junit-vintage-engine</artifactId>
67-
</dependency>
6864
<dependency>
6965
<groupId>org.springframework</groupId>
7066
<artifactId>spring-test</artifactId>

querydsl-examples/querydsl-example-sql-guice/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@
4040
<artifactId>c3p0</artifactId>
4141
<version>0.9.1.2</version>
4242
</dependency>
43-
44-
<!-- TEST dependencies -->
45-
<dependency>
46-
<groupId>org.junit.vintage</groupId>
47-
<artifactId>junit-vintage-engine</artifactId>
48-
</dependency>
4943
</dependencies>
5044

5145
<build>

querydsl-examples/querydsl-example-sql-spring/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@
5959
</dependency>
6060

6161
<!-- TEST dependencies -->
62-
<dependency>
63-
<groupId>org.junit.vintage</groupId>
64-
<artifactId>junit-vintage-engine</artifactId>
65-
</dependency>
6662
<dependency>
6763
<groupId>org.springframework</groupId>
6864
<artifactId>spring-test</artifactId>

querydsl-libraries/querydsl-mongodb/src/test/java/com/querydsl/mongodb/PackageVerification.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.net.URLClassLoader;
2626
import java.nio.charset.StandardCharsets;
2727
import java.nio.file.Files;
28-
import java.nio.file.Paths;
28+
import java.nio.file.Path;
2929
import org.junit.Test;
3030

3131
public class PackageVerification {
@@ -53,7 +53,7 @@ private void verify(File oneJar) throws Exception {
5353
var resourceKey = "META-INF/services/javax.annotation.processing.Processor";
5454
assertThat(
5555
new String(
56-
Files.readAllBytes(Paths.get(oneJarClassLoader.findResource(resourceKey).toURI())),
56+
Files.readAllBytes(Path.of(oneJarClassLoader.findResource(resourceKey).toURI())),
5757
StandardCharsets.UTF_8))
5858
.isEqualTo(MorphiaAnnotationProcessor.class.getName());
5959
}

querydsl-tooling/querydsl-apt/src/test/java/com/querydsl/apt/BooleanExtensionsTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.io.IOException;
2020
import java.nio.charset.StandardCharsets;
2121
import java.nio.file.Files;
22-
import java.nio.file.Paths;
22+
import java.nio.file.Path;
2323
import java.util.Arrays;
2424
import java.util.List;
2525
import org.junit.Test;
@@ -39,7 +39,7 @@ public void process() throws IOException {
3939
var qtypeContent =
4040
new String(
4141
Files.readAllBytes(
42-
Paths.get("target", "booleanExtensions", "com", "querydsl", "QExampleEntity.java")),
42+
Path.of("target", "booleanExtensions", "com", "querydsl", "QExampleEntity.java")),
4343
StandardCharsets.UTF_8);
4444
assertThat(qtypeContent).contains("ext.java.lang.QBoolean booleanProp");
4545
assertThat(qtypeContent).contains("ext.java.lang.QBoolean booleanProp2");
@@ -55,8 +55,7 @@ public void process2() throws IOException {
5555
var qtypeContent =
5656
new String(
5757
Files.readAllBytes(
58-
Paths.get(
59-
"target", "booleanExtensions2", "com", "querydsl", "QExampleEntity.java")),
58+
Path.of("target", "booleanExtensions2", "com", "querydsl", "QExampleEntity.java")),
6059
StandardCharsets.UTF_8);
6160
assertThat(qtypeContent).contains("ext.java.lang.QBoolean booleanProp");
6261
assertThat(qtypeContent).contains("ext.java.lang.QBoolean booleanProp2");

0 commit comments

Comments
 (0)