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">
|
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>
|
<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>
|
<groupId>net.kemitix</groupId>
|
||||||
<artifactId>mon</artifactId>
|
<artifactId>mon</artifactId>
|
||||||
<version>0.7.0-SNAPSHOT</version>
|
<version>0.7.0-SNAPSHOT</version>
|
||||||
|
@ -21,10 +15,10 @@
|
||||||
<lombok.version>1.18.0</lombok.version>
|
<lombok.version>1.18.0</lombok.version>
|
||||||
<tiles-maven-plugin.version>2.11</tiles-maven-plugin.version>
|
<tiles-maven-plugin.version>2.11</tiles-maven-plugin.version>
|
||||||
<kemitix-tiles.version>0.8.1</kemitix-tiles.version>
|
<kemitix-tiles.version>0.8.1</kemitix-tiles.version>
|
||||||
<maven-surefire-plugin.version>2.20.1</maven-surefire-plugin.version>
|
<maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
|
||||||
<maven-failsafe-plugin.version>2.20.1</maven-failsafe-plugin.version>
|
<maven-failsafe-plugin.version>2.22.0</maven-failsafe-plugin.version>
|
||||||
<digraph-dependency.basePackage>net.kemitix.mon</digraph-dependency.basePackage>
|
<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>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class MaybeTest {
|
||||||
@Test
|
@Test
|
||||||
public void justMustBeNonNull() {
|
public void justMustBeNonNull() {
|
||||||
assertThatNullPointerException().isThrownBy(() -> just(null))
|
assertThatNullPointerException().isThrownBy(() -> just(null))
|
||||||
.withMessage("value");
|
.withMessageContaining("value");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class MonTest {
|
||||||
public void factoryRequiresValidator() {
|
public void factoryRequiresValidator() {
|
||||||
assertThatNullPointerException().isThrownBy(
|
assertThatNullPointerException().isThrownBy(
|
||||||
() -> Mon.factory(null, Optional::of, Optional::empty))
|
() -> Mon.factory(null, Optional::of, Optional::empty))
|
||||||
.withMessage("validator");
|
.withMessageContaining("validator");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -105,7 +105,7 @@ public class MonTest {
|
||||||
public void factoryRequiresOnValid() {
|
public void factoryRequiresOnValid() {
|
||||||
assertThatNullPointerException().isThrownBy(
|
assertThatNullPointerException().isThrownBy(
|
||||||
() -> Mon.factory(v -> true, null, Optional::empty))
|
() -> Mon.factory(v -> true, null, Optional::empty))
|
||||||
.withMessage("onValid");
|
.withMessageContaining("onValid");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -113,7 +113,7 @@ public class MonTest {
|
||||||
public void factoryRequiresOnInvalid() {
|
public void factoryRequiresOnInvalid() {
|
||||||
assertThatNullPointerException().isThrownBy(
|
assertThatNullPointerException().isThrownBy(
|
||||||
() -> Mon.factory(v -> true, Optional::of, null))
|
() -> Mon.factory(v -> true, Optional::of, null))
|
||||||
.withMessage("onInvalid");
|
.withMessageContaining("onInvalid");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue