JAVA-8436: Fix unit tests in assertion-libraries

This commit is contained in:
Krzysiek 2021-11-18 19:29:30 +01:00
parent 32c8413f82
commit 1d8f5ee7eb
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ public class AssertJConditionUnitTest {
assertThat(member).isNot(senior);
fail();
} catch (AssertionError e) {
assertThat(e).hasMessageContaining("not to be <senior>");
assertThat(e).hasMessageContaining("not to be senior");
}
}
@ -38,7 +38,7 @@ public class AssertJConditionUnitTest {
assertThat(member).has(nameJohn);
fail();
} catch (AssertionError e) {
assertThat(e).hasMessageContaining("<name John>");
assertThat(e).hasMessageContaining("name John");
}
}