mirror of https://github.com/shred/acme4j
Replace jcabi-matchers with hamcrest 2
parent
9d431d2289
commit
565bb79811
|
@ -46,8 +46,6 @@ import org.hamcrest.Description;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.jcabi.matchers.RegexMatchers;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for {@link CSRBuilder}.
|
* Unit tests for {@link CSRBuilder}.
|
||||||
*/
|
*/
|
||||||
|
@ -191,7 +189,7 @@ public class CSRBuilderTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure PEM file is properly formatted
|
// Make sure PEM file is properly formatted
|
||||||
assertThat(pem, RegexMatchers.matchesPattern(
|
assertThat(pem, matchesPattern(
|
||||||
"-----BEGIN CERTIFICATE REQUEST-----[\\r\\n]+"
|
"-----BEGIN CERTIFICATE REQUEST-----[\\r\\n]+"
|
||||||
+ "([a-zA-Z0-9/+=]+[\\r\\n]+)+"
|
+ "([a-zA-Z0-9/+=]+[\\r\\n]+)+"
|
||||||
+ "-----END CERTIFICATE REQUEST-----[\\r\\n]*"));
|
+ "-----END CERTIFICATE REQUEST-----[\\r\\n]*"));
|
||||||
|
|
|
@ -30,8 +30,6 @@ import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.jcabi.matchers.RegexMatchers;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for {@link KeyPairUtils}.
|
* Unit tests for {@link KeyPairUtils}.
|
||||||
*/
|
*/
|
||||||
|
@ -73,7 +71,7 @@ public class KeyPairUtilsTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure PEM file is properly formatted
|
// Make sure PEM file is properly formatted
|
||||||
assertThat(pem, RegexMatchers.matchesPattern(
|
assertThat(pem, matchesPattern(
|
||||||
"-----BEGIN RSA PRIVATE KEY-----[\\r\\n]+"
|
"-----BEGIN RSA PRIVATE KEY-----[\\r\\n]+"
|
||||||
+ "([a-zA-Z0-9/+=]+[\\r\\n]+)+"
|
+ "([a-zA-Z0-9/+=]+[\\r\\n]+)+"
|
||||||
+ "-----END RSA PRIVATE KEY-----[\\r\\n]*"));
|
+ "-----END RSA PRIVATE KEY-----[\\r\\n]*"));
|
||||||
|
@ -116,7 +114,7 @@ public class KeyPairUtilsTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure PEM file is properly formatted
|
// Make sure PEM file is properly formatted
|
||||||
assertThat(pem, RegexMatchers.matchesPattern(
|
assertThat(pem, matchesPattern(
|
||||||
"-----BEGIN EC PRIVATE KEY-----[\\r\\n]+"
|
"-----BEGIN EC PRIVATE KEY-----[\\r\\n]+"
|
||||||
+ "([a-zA-Z0-9/+=]+[\\r\\n]+)+"
|
+ "([a-zA-Z0-9/+=]+[\\r\\n]+)+"
|
||||||
+ "-----END EC PRIVATE KEY-----[\\r\\n]*"));
|
+ "-----END EC PRIVATE KEY-----[\\r\\n]*"));
|
||||||
|
|
11
pom.xml
11
pom.xml
|
@ -228,16 +228,11 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hamcrest</groupId>
|
<groupId>org.hamcrest</groupId>
|
||||||
<artifactId>hamcrest-library</artifactId>
|
<artifactId>java-hamcrest</artifactId>
|
||||||
<version>[1.3,)</version>
|
<version>[2.0.0.0,)</version>
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.jcabi</groupId>
|
|
||||||
<artifactId>jcabi-matchers</artifactId>
|
|
||||||
<version>[1.3,)</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>uk.co.datumedge</groupId>
|
<groupId>uk.co.datumedge</groupId>
|
||||||
<artifactId>hamcrest-json</artifactId>
|
<artifactId>hamcrest-json</artifactId>
|
||||||
|
|
Loading…
Reference in New Issue