Skip to content

Commit ab6e2e4

Browse files
author
sunqijun.jun
committed
fix spotlessApply
Signed-off-by: sunqijun.jun <sunqijun.jun@bytedance.com>
1 parent 8f116a9 commit ab6e2e4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

modules/reindex/src/test/java/org/opensearch/index/reindex/ReindexBasicTests.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
import java.util.Map;
4949
import java.util.stream.Collectors;
5050

51-
import static org.hamcrest.Matchers.containsString;
5251
import static org.opensearch.index.query.QueryBuilders.matchAllQuery;
5352
import static org.opensearch.index.query.QueryBuilders.termQuery;
5453
import static org.opensearch.test.hamcrest.OpenSearchAssertions.assertAcked;
5554
import static org.opensearch.test.hamcrest.OpenSearchAssertions.assertHitCount;
55+
import static org.hamcrest.Matchers.containsString;
5656
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
5757
import static org.hamcrest.Matchers.hasSize;
5858
import static org.hamcrest.Matchers.lessThanOrEqualTo;
@@ -497,12 +497,7 @@ public void testTooMuchSlices() throws InterruptedException {
497497

498498
int slices = 2000;
499499
IllegalArgumentException e = expectThrows(IllegalArgumentException.class, () -> {
500-
reindex()
501-
.source("source")
502-
.destination("dest")
503-
.refresh(true)
504-
.setSlices(slices)
505-
.get();
500+
reindex().source("source").destination("dest").refresh(true).setSlices(slices).get();
506501
});
507502
assertThat(e.getMessage(), containsString("is too large"));
508503
}

0 commit comments

Comments
 (0)