More upgrade and update tests to match new assertj error messages
This commit is contained in:
parent
91884b2830
commit
95d5837e31
3 changed files with 7 additions and 13 deletions
12
pom.xml
12
pom.xml
|
@ -4,12 +4,6 @@
|
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>net.kemitix</groupId>
|
||||
<artifactId>kemitix-parent</artifactId>
|
||||
<version>5.1.0</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
<groupId>net.kemitix</groupId>
|
||||
<artifactId>mon</artifactId>
|
||||
<version>0.7.0-SNAPSHOT</version>
|
||||
|
@ -21,10 +15,10 @@
|
|||
<lombok.version>1.18.0</lombok.version>
|
||||
<tiles-maven-plugin.version>2.11</tiles-maven-plugin.version>
|
||||
<kemitix-tiles.version>0.8.1</kemitix-tiles.version>
|
||||
<maven-surefire-plugin.version>2.20.1</maven-surefire-plugin.version>
|
||||
<maven-failsafe-plugin.version>2.20.1</maven-failsafe-plugin.version>
|
||||
<maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
|
||||
<maven-failsafe-plugin.version>2.22.0</maven-failsafe-plugin.version>
|
||||
<digraph-dependency.basePackage>net.kemitix.mon</digraph-dependency.basePackage>
|
||||
<kemitix-checkstyle.version>4.0.1</kemitix-checkstyle.version>
|
||||
<kemitix-checkstyle.version>4.1.1</kemitix-checkstyle.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -24,7 +24,7 @@ public class MaybeTest {
|
|||
@Test
|
||||
public void justMustBeNonNull() {
|
||||
assertThatNullPointerException().isThrownBy(() -> just(null))
|
||||
.withMessage("value");
|
||||
.withMessageContaining("value");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -97,7 +97,7 @@ public class MonTest {
|
|||
public void factoryRequiresValidator() {
|
||||
assertThatNullPointerException().isThrownBy(
|
||||
() -> Mon.factory(null, Optional::of, Optional::empty))
|
||||
.withMessage("validator");
|
||||
.withMessageContaining("validator");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -105,7 +105,7 @@ public class MonTest {
|
|||
public void factoryRequiresOnValid() {
|
||||
assertThatNullPointerException().isThrownBy(
|
||||
() -> Mon.factory(v -> true, null, Optional::empty))
|
||||
.withMessage("onValid");
|
||||
.withMessageContaining("onValid");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -113,7 +113,7 @@ public class MonTest {
|
|||
public void factoryRequiresOnInvalid() {
|
||||
assertThatNullPointerException().isThrownBy(
|
||||
() -> Mon.factory(v -> true, Optional::of, null))
|
||||
.withMessage("onInvalid");
|
||||
.withMessageContaining("onInvalid");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue