From f1b90262861ec3d2d9cf096f82da5916f18d8e35 Mon Sep 17 00:00:00 2001 From: Moriarty <22225248+apmoriarty@users.noreply.github.com> Date: Tue, 27 Jun 2023 11:25:26 -0400 Subject: [PATCH] configure impsort for tests (#2010) --- .github/workflows/tests.yml | 2 +- .../datawave/query/data/parsers/KeyParserFactoryTest.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f86c301e8fd..31f68dde4ed 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,7 @@ jobs: cache: 'maven' - name: Format code run: | - mvn -V -B -e -ntp "-Dstyle.color=always" clean formatter:format sortpom:sort -Pautoformat + mvn -V -B -e -ntp "-Dstyle.color=always" clean formatter:format sortpom:sort impsort:sort -Pautoformat git status git diff-index --quiet HEAD || (echo "Error! There are modified files after formatting." && false) diff --git a/warehouse/query-core/src/test/java/datawave/query/data/parsers/KeyParserFactoryTest.java b/warehouse/query-core/src/test/java/datawave/query/data/parsers/KeyParserFactoryTest.java index e9395e2c9a0..13138f17c62 100644 --- a/warehouse/query-core/src/test/java/datawave/query/data/parsers/KeyParserFactoryTest.java +++ b/warehouse/query-core/src/test/java/datawave/query/data/parsers/KeyParserFactoryTest.java @@ -1,9 +1,10 @@ package datawave.query.data.parsers; -import datawave.query.data.parsers.KeyParserFactory.PARSER_TYPE; +import static org.junit.Assert.assertTrue; + import org.junit.Test; -import static org.junit.Assert.assertTrue; +import datawave.query.data.parsers.KeyParserFactory.PARSER_TYPE; public class KeyParserFactoryTest {