diff --git a/pom.xml b/pom.xml index 16aa454..785fcd2 100644 --- a/pom.xml +++ b/pom.xml @@ -166,27 +166,19 @@ - org.eclipse.m2e - lifecycle-mapping - 1.0.0 + com.spotify.fmt + fmt-maven-plugin + 2.21.1 + + + + format + + + - - - - - com.theoryinpractise - googleformatter-maven-plugin - [1.7.3,) - - format - - - - - - - - + true + @@ -230,28 +222,20 @@ - com.theoryinpractise - googleformatter-maven-plugin - 1.7.3 + com.spotify.fmt + fmt-maven-plugin + 2.23 - reformat-sources - process-sources format - - false - - true - true - false - false - false - 100 - + + true + + org.apache.maven.plugins diff --git a/src/test/java/gov/cms/madie/cqllibraryservice/controllers/CqlLibraryControllerMvcTest.java b/src/test/java/gov/cms/madie/cqllibraryservice/controllers/CqlLibraryControllerMvcTest.java index fc9c845..b48d409 100644 --- a/src/test/java/gov/cms/madie/cqllibraryservice/controllers/CqlLibraryControllerMvcTest.java +++ b/src/test/java/gov/cms/madie/cqllibraryservice/controllers/CqlLibraryControllerMvcTest.java @@ -817,8 +817,7 @@ public void testUpdateCqlLibraryReturns200ForSuccessfulUpdate() throws Exception LibrarySet.builder().librarySetId(TEST_LIBRARYSET_ID).owner(TEST_USER_ID).build()) .build(); final CqlLibrary updatingLibrary = - existingLibrary - .toBuilder() + existingLibrary.toBuilder() .id("Library1_ID") .cqlLibraryName("NewName") .cql("library testCql version '2.1.000'") @@ -933,8 +932,7 @@ public void testCreateDraftReturnsConflictWhenDraftAlreadyExists() throws Except .build(); final String json = toJsonString( - existingLibrary - .toBuilder() + existingLibrary.toBuilder() .draft(false) .version(new Version(2, 1, 0)) .cql("library Library1 version '1.0.000'") @@ -976,8 +974,7 @@ public void testCreateDraftReturnsNotFound() throws Exception { .build(); final String json = toJsonString( - existingLibrary - .toBuilder() + existingLibrary.toBuilder() .draft(false) .version(new Version(2, 1, 0)) .cql("library Library1 version '1.0.000'") @@ -1019,8 +1016,7 @@ public void testCreateDraftReturnsBadRequestForNameChangeNonUnique() throws Exce .build(); final String json = toJsonString( - existingLibrary - .toBuilder() + existingLibrary.toBuilder() .cqlLibraryName("ChangedName") .cql("library ChangedName version '1.0.000'") .draft(false) @@ -1064,8 +1060,7 @@ public void testCreateDraftReturnsCreatedDraft() throws Exception { .build(); final String json = toJsonString( - draftLibrary - .toBuilder() + draftLibrary.toBuilder() .draft(false) .cql("library Library1 version '1.2.000'") .build()); diff --git a/src/test/java/gov/cms/madie/cqllibraryservice/controllers/CqlLibraryControllerTest.java b/src/test/java/gov/cms/madie/cqllibraryservice/controllers/CqlLibraryControllerTest.java index 01299ed..970a48e 100644 --- a/src/test/java/gov/cms/madie/cqllibraryservice/controllers/CqlLibraryControllerTest.java +++ b/src/test/java/gov/cms/madie/cqllibraryservice/controllers/CqlLibraryControllerTest.java @@ -364,8 +364,7 @@ public void testUpdateCqlLibrarySuccessfullyUpdates() { .lastModifiedBy("User1") .build(); final CqlLibrary updatingLibrary = - existingLibrary - .toBuilder() + existingLibrary.toBuilder() .id("Library1_ID") .cqlLibraryName("NewName") .cql("library testCql version '2.1.000'") diff --git a/src/test/java/gov/cms/madie/cqllibraryservice/services/CqlLibraryServiceAclTest.java b/src/test/java/gov/cms/madie/cqllibraryservice/services/CqlLibraryServiceAclTest.java index 0148958..7290ca8 100644 --- a/src/test/java/gov/cms/madie/cqllibraryservice/services/CqlLibraryServiceAclTest.java +++ b/src/test/java/gov/cms/madie/cqllibraryservice/services/CqlLibraryServiceAclTest.java @@ -20,7 +20,6 @@ import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.when;