DATACMNS-1399 - Fixed unit tests after change in exception message.
Original pull request: #313.
This commit is contained in:
@@ -31,7 +31,7 @@ public class RepositoryFragmentUnitTests {
|
|||||||
public void fragmentCreationFromUnrelatedTypesShouldFail() {
|
public void fragmentCreationFromUnrelatedTypesShouldFail() {
|
||||||
|
|
||||||
assertThatThrownBy(() -> RepositoryFragment.implemented((Class) CustomFragment.class, new UnrelatedImpl()))
|
assertThatThrownBy(() -> RepositoryFragment.implemented((Class) CustomFragment.class, new UnrelatedImpl()))
|
||||||
.hasMessageMatching("Fragment implementation .* does not implement .*UnrelatedImpl!")
|
.hasMessageMatching("Fragment implementation .*UnrelatedImpl does not implement .*!")
|
||||||
.isInstanceOf(IllegalArgumentException.class);
|
.isInstanceOf(IllegalArgumentException.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user