JAVA-8436: Fix unit tests in assertion-libraries
This commit is contained in:
parent
32c8413f82
commit
1d8f5ee7eb
@ -25,7 +25,7 @@ public class AssertJConditionUnitTest {
|
|||||||
assertThat(member).isNot(senior);
|
assertThat(member).isNot(senior);
|
||||||
fail();
|
fail();
|
||||||
} catch (AssertionError e) {
|
} 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);
|
assertThat(member).has(nameJohn);
|
||||||
fail();
|
fail();
|
||||||
} catch (AssertionError e) {
|
} catch (AssertionError e) {
|
||||||
assertThat(e).hasMessageContaining("<name John>");
|
assertThat(e).hasMessageContaining("name John");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user