Skip to content

Commit 7eeb6c8

Browse files
Use Collections.singletonList
1 parent 775ea35 commit 7eeb6c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/job/JobManagerTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ public void testNotifyFilterChanged() {
229229

230230
MlFilter filter = MlFilter.builder("foo_filter").setItems("a", "b").build();
231231

232-
jobManager.notifyFilterChanged(filter, new TreeSet<>(Arrays.asList("item 1", "item 2")), new TreeSet<>(Arrays.asList("item 3")));
232+
jobManager.notifyFilterChanged(filter, new TreeSet<>(Arrays.asList("item 1", "item 2")),
233+
new TreeSet<>(Collections.singletonList("item 3")));
233234

234235
ArgumentCaptor<UpdateParams> updateParamsCaptor = ArgumentCaptor.forClass(UpdateParams.class);
235236
verify(updateJobProcessNotifier, times(2)).submitJobUpdate(updateParamsCaptor.capture(), any(ActionListener.class));

0 commit comments

Comments
 (0)