mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-04 21:01:21 +08:00
work with hamcrest 2.2 single-module structure
This commit is contained in:
parent
bd76ec8efc
commit
bde01869cf
4
pom.xml
4
pom.xml
@ -89,7 +89,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-library</artifactId>
|
||||
<artifactId>hamcrest</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -152,7 +152,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-library</artifactId>
|
||||
<artifactId>hamcrest</artifactId>
|
||||
<version>${hamcrest.veresion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
@ -43,7 +43,8 @@
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-core</artifactId>
|
||||
<artifactId>hamcrest</artifactId>
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
|
||||
@ -15,7 +15,6 @@ package com.querydsl.collections;
|
||||
|
||||
import com.querydsl.core.types.Path;
|
||||
import org.hamcrest.Description;
|
||||
import org.hamcrest.Factory;
|
||||
import org.hamcrest.Matcher;
|
||||
import org.hamcrest.TypeSafeDiagnosingMatcher;
|
||||
|
||||
@ -50,12 +49,10 @@ public class PathMatcher<T, V> extends TypeSafeDiagnosingMatcher<T> {
|
||||
this.accessor = accessor;
|
||||
}
|
||||
|
||||
@Factory
|
||||
public static <T,P> Matcher<T> hasValue(Path<P> path) {
|
||||
return new PathMatcher<T,P>(path, notNullValue());
|
||||
}
|
||||
|
||||
@Factory
|
||||
public static <T,P> Matcher<T> hasValue(Path<P> path, Matcher<? super P> matcher) {
|
||||
return new PathMatcher<T,P>(path, matcher);
|
||||
}
|
||||
|
||||
@ -144,11 +144,6 @@
|
||||
<version>4.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-all</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@ -73,11 +73,6 @@
|
||||
<version>4.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-all</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user