Skip to content

Commit

Permalink
Removed unused variable in testAnomalyLocalizationExecutionResponse f…
Browse files Browse the repository at this point in the history
…unction.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>
  • Loading branch information
nathaliellenaa committed Jan 27, 2025
1 parent c2167a3 commit 90ad7a8
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand All @@ -42,7 +41,6 @@
import org.opensearch.ml.common.input.Input;
import org.opensearch.ml.common.output.execute.anomalylocalization.AnomalyLocalizationOutput;
import org.opensearch.ml.common.output.execute.anomalylocalization.AnomalyLocalizationOutput.Bucket;
import org.opensearch.ml.common.output.execute.anomalylocalization.AnomalyLocalizationOutput.Entity;
import org.opensearch.ml.common.output.execute.anomalylocalization.AnomalyLocalizationOutput.Result;
import org.opensearch.ml.common.output.execute.samplecalculator.LocalSampleCalculatorOutput;
import org.opensearch.ml.common.transport.execute.MLExecuteTaskAction;
Expand Down Expand Up @@ -381,12 +379,6 @@ public void testAnomalyLocalizationExecutionResponse() throws Exception {
doAnswer(invocation -> {
ActionListener<MLExecuteTaskResponse> actionListener = invocation.getArgument(2);

Entity entity1 = new Entity();
entity1.setKey(Collections.singletonList("attr0"));
entity1.setContributionValue(1.0);
entity1.setBaseValue(2.0);
entity1.setNewValue(3.0);

Bucket bucket1 = new Bucket();
bucket1.setStartTime(1620630000000L);
bucket1.setEndTime(1620716400000L);
Expand Down

0 comments on commit 90ad7a8

Please sign in to comment.