Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Senic committed Mar 8, 2023
1 parent d1eef61 commit 7d3b627
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class Validation {
public void noDocuments() throws Exception {
String json =
"""
{
"insertMany": {
}
}
""";
{
"insertMany": {
}
}
""";

InsertManyCommand command = objectMapper.readValue(json, InsertManyCommand.class);
Set<ConstraintViolation<InsertManyCommand>> result = validator.validate(command);
Expand All @@ -47,12 +47,12 @@ public void noDocuments() throws Exception {
public void documentsArrayEmpty() throws Exception {
String json =
"""
{
"insertMany": {
"documents": []
}
}
""";
{
"insertMany": {
"documents": []
}
}
""";

InsertManyCommand command = objectMapper.readValue(json, InsertManyCommand.class);
Set<ConstraintViolation<InsertManyCommand>> result = validator.validate(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class Validation {
public void noDocument() throws Exception {
String json =
"""
{
"insertOne": {
}
}
""";
{
"insertOne": {
}
}
""";

InsertOneCommand command = objectMapper.readValue(json, InsertOneCommand.class);
Set<ConstraintViolation<InsertOneCommand>> result = validator.validate(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ public class InsertIntegrationTest extends CollectionResourceBaseIntegrationTest

@AfterEach
public void cleanUpData() {
String json =
"""
{
"deleteMany": {
}
}
""";
String json = """
{
"deleteMany": {
}
}
""";

given()
.header(HttpConstants.AUTHENTICATION_TOKEN_HEADER_NAME, getAuthToken())
Expand Down

0 comments on commit 7d3b627

Please sign in to comment.