Skip to content

Commit

Permalink
getFirst()
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCAI-mlv committed Aug 1, 2024
1 parent c644c87 commit a35cd6c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void deleteConnectorNotOwned() {
assertEquals(ResourceValidationException.class, error.getClass());
assertEquals(1, ((ResourceValidationException) error).getValidationErrors().size());
assertEquals("Invalid value \"connect1\" for field \"name\": namespace is not owner of the resource.",
((ResourceValidationException) error).getValidationErrors().get(0));
((ResourceValidationException) error).getValidationErrors().getFirst());
})
.verify();
}
Expand Down Expand Up @@ -267,7 +267,7 @@ void createConnectorNotOwner() {
assertEquals(ResourceValidationException.class, error.getClass());
assertEquals(1, ((ResourceValidationException) error).getValidationErrors().size());
assertEquals("Invalid value \"connect1\" for field \"name\": namespace is not owner of the resource.",
((ResourceValidationException) error).getValidationErrors().get(0));
((ResourceValidationException) error).getValidationErrors().getFirst());
})
.verify();
}
Expand Down Expand Up @@ -297,7 +297,7 @@ void createConnectorLocalErrors() {
assertEquals(ResourceValidationException.class, error.getClass());
assertEquals(1, ((ResourceValidationException) error).getValidationErrors().size());
assertEquals("Local Validation Error 1",
((ResourceValidationException) error).getValidationErrors().get(0));
((ResourceValidationException) error).getValidationErrors().getFirst());
})
.verify();
}
Expand Down Expand Up @@ -330,7 +330,7 @@ void createConnectorRemoteErrors() {
assertEquals(ResourceValidationException.class, error.getClass());
assertEquals(1, ((ResourceValidationException) error).getValidationErrors().size());
assertEquals("Remote Validation Error 1",
((ResourceValidationException) error).getValidationErrors().get(0));
((ResourceValidationException) error).getValidationErrors().getFirst());
})
.verify();
}
Expand Down Expand Up @@ -400,7 +400,7 @@ void createConnectorFailQuotaValidation() {
.consumeErrorWith(error -> {
assertEquals(ResourceValidationException.class, error.getClass());
assertEquals(1, ((ResourceValidationException) error).getValidationErrors().size());
assertEquals("Quota error", ((ResourceValidationException) error).getValidationErrors().get(0));
assertEquals("Quota error", ((ResourceValidationException) error).getValidationErrors().getFirst());
})
.verify();
}
Expand Down Expand Up @@ -600,7 +600,7 @@ void restartConnectorNotOwned() {
assertEquals(ResourceValidationException.class, error.getClass());
assertEquals(1, ((ResourceValidationException) error).getValidationErrors().size());
assertEquals("Invalid value \"connect1\" for field \"name\": namespace is not owner of the resource.",
((ResourceValidationException) error).getValidationErrors().get(0));
((ResourceValidationException) error).getValidationErrors().getFirst());
})
.verify();
}
Expand Down

0 comments on commit a35cd6c

Please sign in to comment.