Fix target failOnMissingDs (#1906)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-10-17 18:51:21 +03:00
committed by GitHub
parent 8419169d52
commit ec7fb0cd1b

View File

@@ -203,7 +203,7 @@ class TargetTagManagementTest extends AbstractJpaIntegrationTest {
.matches(e -> {
if (e instanceof EntityNotFoundException enfe) {
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);
}
}