diff --git a/x-pack/plugin/rank-rrf/src/test/java/org/elasticsearch/xpack/rank/rrf/RRFRetrieverBuilderTests.java b/x-pack/plugin/rank-rrf/src/test/java/org/elasticsearch/xpack/rank/rrf/RRFRetrieverBuilderTests.java index b2554a2210769..f5a9f4e9b0c3e 100644 --- a/x-pack/plugin/rank-rrf/src/test/java/org/elasticsearch/xpack/rank/rrf/RRFRetrieverBuilderTests.java +++ b/x-pack/plugin/rank-rrf/src/test/java/org/elasticsearch/xpack/rank/rrf/RRFRetrieverBuilderTests.java @@ -49,8 +49,8 @@ public void testRetrieverExtractionErrors() throws IOException { ) { SearchSourceBuilder ssb = new SearchSourceBuilder(); IllegalArgumentException iae = expectThrows( - IllegalArgumentException.class, - () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) + IllegalArgumentException.class, + () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) ); assertEquals("[search_after] cannot be used in children of compound retrievers", iae.getMessage()); } @@ -64,8 +64,8 @@ public void testRetrieverExtractionErrors() throws IOException { ) { SearchSourceBuilder ssb = new SearchSourceBuilder(); IllegalArgumentException iae = expectThrows( - IllegalArgumentException.class, - () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) + IllegalArgumentException.class, + () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) ); assertEquals("[terminate_after] cannot be used in children of compound retrievers", iae.getMessage()); } @@ -78,8 +78,8 @@ public void testRetrieverExtractionErrors() throws IOException { ) { SearchSourceBuilder ssb = new SearchSourceBuilder(); IllegalArgumentException iae = expectThrows( - IllegalArgumentException.class, - () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) + IllegalArgumentException.class, + () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) ); assertEquals("[sort] cannot be used in children of compound retrievers", iae.getMessage()); } @@ -92,8 +92,8 @@ public void testRetrieverExtractionErrors() throws IOException { ) { SearchSourceBuilder ssb = new SearchSourceBuilder(); IllegalArgumentException iae = expectThrows( - IllegalArgumentException.class, - () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) + IllegalArgumentException.class, + () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) ); assertEquals("[min_score] cannot be used in children of compound retrievers", iae.getMessage()); } @@ -107,8 +107,8 @@ public void testRetrieverExtractionErrors() throws IOException { ) { SearchSourceBuilder ssb = new SearchSourceBuilder(); IllegalArgumentException iae = expectThrows( - IllegalArgumentException.class, - () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) + IllegalArgumentException.class, + () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) ); assertEquals("[collapse] cannot be used in children of compound retrievers", iae.getMessage()); } @@ -121,8 +121,8 @@ public void testRetrieverExtractionErrors() throws IOException { ) { SearchSourceBuilder ssb = new SearchSourceBuilder(); IllegalArgumentException iae = expectThrows( - IllegalArgumentException.class, - () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) + IllegalArgumentException.class, + () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) ); assertEquals("[rank] cannot be used in children of compound retrievers", iae.getMessage()); } @@ -138,8 +138,8 @@ public void testRetrieverBuilderParsingMaxDepth() throws IOException { ) { SearchSourceBuilder ssb = new SearchSourceBuilder(); IllegalArgumentException iae = expectThrows( - IllegalArgumentException.class, - () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) + IllegalArgumentException.class, + () -> ssb.parseXContent(parser, true, nf -> true).rewrite(null) ); assertEquals("[1:65] [rrf] failed to parse field [retrievers]", iae.getMessage()); assertEquals( @@ -169,4 +169,4 @@ protected NamedXContentRegistry xContentRegistry() { ); return new NamedXContentRegistry(entries); } -} \ No newline at end of file +}