From 84e6faeca7fad5ff441cbbdf5a0896706f93e14b Mon Sep 17 00:00:00 2001 From: Aurelien FOUCRET Date: Fri, 17 Nov 2023 15:55:23 +0100 Subject: [PATCH] Lint --- .../xpack/ml/ltr/LearnToRankServiceTests.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/ltr/LearnToRankServiceTests.java b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/ltr/LearnToRankServiceTests.java index f3b9030bdc7c6..aaad7543af2f7 100644 --- a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/ltr/LearnToRankServiceTests.java +++ b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/ltr/LearnToRankServiceTests.java @@ -78,9 +78,7 @@ public void testLoadLearnToRankConfig() throws Exception { ); ActionListener listener = mock(ActionListener.class); learnToRankService.loadLearnToRankConfig(GOOD_MODEL, Collections.emptyMap(), listener); - assertBusy(() -> { - verify(listener).onResponse(eq((LearnToRankConfig) GOOD_MODEL_CONFIG.getInferenceConfig())); - }); + assertBusy(() -> { verify(listener).onResponse(eq((LearnToRankConfig) GOOD_MODEL_CONFIG.getInferenceConfig())); }); } @SuppressWarnings("unchecked") @@ -93,9 +91,7 @@ public void testLoadMissingLearnToRankConfig() throws Exception { ); ActionListener listener = mock(ActionListener.class); learnToRankService.loadLearnToRankConfig("non-existing-model", Collections.emptyMap(), listener); - assertBusy(() -> { - verify(listener).onFailure(isA(ResourceNotFoundException.class)); - }); + assertBusy(() -> { verify(listener).onFailure(isA(ResourceNotFoundException.class)); }); } @SuppressWarnings("unchecked") @@ -108,9 +104,7 @@ public void testLoadBadLearnToRankConfig() throws Exception { ); ActionListener listener = mock(ActionListener.class); learnToRankService.loadLearnToRankConfig(BAD_MODEL, Collections.emptyMap(), listener); - assertBusy(() -> { - verify(listener).onFailure(isA(ElasticsearchStatusException.class)); - }); + assertBusy(() -> { verify(listener).onFailure(isA(ElasticsearchStatusException.class)); }); } public void testLoadLearnToRankConfigWithTemplate() {