Fix target failOnMissingDs (#1906)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -203,7 +203,7 @@ class TargetTagManagementTest extends AbstractJpaIntegrationTest {
|
|||||||
.matches(e -> {
|
.matches(e -> {
|
||||||
if (e instanceof EntityNotFoundException enfe) {
|
if (e instanceof EntityNotFoundException enfe) {
|
||||||
if (enfe.getInfo().get(EntityNotFoundException.TYPE).equals(Target.class.getSimpleName())) {
|
if (enfe.getInfo().get(EntityNotFoundException.TYPE).equals(Target.class.getSimpleName())) {
|
||||||
if (enfe.getInfo().get(EntityNotFoundException.TYPE) instanceof Collection entityId) {
|
if (enfe.getInfo().get(EntityNotFoundException.ENTITY_ID) instanceof Collection entityId) {
|
||||||
return entityId.stream().sorted().toList().equals(missing);
|
return entityId.stream().sorted().toList().equals(missing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user