Skip to content

Commit

Permalink
MAT-6576: Use Spotify formatter. Run formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotanchik-SB committed May 21, 2024
1 parent 99b92a7 commit 24c281c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 20 deletions.
36 changes: 23 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,30 +154,40 @@
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>com.spotify.fmt</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.21.1</version>
<executions>
<execution>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
<configuration>
<skipSortingImports>true</skipSortingImports>
<style>google</style>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>googleformatter-maven-plugin</artifactId>
<version>1.7.3</version>
<groupId>com.spotify.fmt</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.21.1</version>
<executions>
<execution>
<id>reformat-sources</id>
<phase>process-sources</phase>
<goals>
<goal>format</goal>
</goals>
<configuration>
<includeStale>false</includeStale>
<style>GOOGLE</style>
<filterModified>false</filterModified>
<skip>false</skip>
<fixImports>false</fixImports>
<maxLineLength>100</maxLineLength>
</configuration>
</execution>
</executions>
<configuration>
<skipSortingImports>true</skipSortingImports>
<style>google</style>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
public class PackagingUtilityFactory {

public static PackagingUtility getInstance(String model)
throws InstantiationException, IllegalAccessException, IllegalArgumentException,
InvocationTargetException, NoSuchMethodException, SecurityException,
throws InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException,
NoSuchMethodException,
SecurityException,
ClassNotFoundException {
Map<String, String> modelMap =
new HashMap<>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ void testGetZipBundleForMultipleTestCases() throws IOException {
String testCaseBundleJson1 = getStringFromTestResource("/testCaseBundle.json");
String testCaseBundleJson2 = getStringFromTestResource("/testCaseBundle.json");
Bundle testCaseBundle1 =
FhirContext.forR4().newJsonParser().parseResource(Bundle.class, testCaseBundleJson1);
FhirContext.forR4().newJsonParser().parseResource(Bundle.class, testCaseBundleJson1);
Bundle testCaseBundle2 =
FhirContext.forR4().newJsonParser().parseResource(Bundle.class, testCaseBundleJson2);
FhirContext.forR4().newJsonParser().parseResource(Bundle.class, testCaseBundleJson2);
Map<String, Bundle> multiTestCases = new HashMap<>();
multiTestCases.put("TC1", testCaseBundle1);
multiTestCases.put("TC2", testCaseBundle2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

import org.junit.jupiter.api.Test;

import gov.cms.madie.packaging.utils.PackagingUtility;
import gov.cms.madie.packaging.utils.PackagingUtilityFactory;

class ResourceUtilityFactoryTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.MockedStatic;
import org.mockito.Mockito;

import java.util.Map;
Expand Down

0 comments on commit 24c281c

Please sign in to comment.