@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package org.springframework.data.keyvalue.repository;
|
||||
|
||||
import static java.util.Arrays.*;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
import static org.mockito.ArgumentMatchers.*;
|
||||
import static org.mockito.Mockito.*;
|
||||
@@ -96,7 +95,7 @@ public class SimpleKeyValueRepositoryUnitTests {
|
||||
Foo one = new Foo("one");
|
||||
Foo two = new Foo("two");
|
||||
|
||||
repo.saveAll(asList(one, two));
|
||||
repo.saveAll(Arrays.asList(one, two));
|
||||
verify(opsMock, times(1)).insert(eq(one));
|
||||
verify(opsMock, times(1)).insert(eq(two));
|
||||
}
|
||||
@@ -123,7 +122,7 @@ public class SimpleKeyValueRepositoryUnitTests {
|
||||
@Test // DATAKV-330
|
||||
public void deleteAllById() {
|
||||
|
||||
repo.deleteAllById(asList("one", "two"));
|
||||
repo.deleteAllById(Arrays.asList("one", "two"));
|
||||
|
||||
verify(opsMock, times(1)).delete(eq("one"), eq(Foo.class));
|
||||
verify(opsMock, times(1)).delete(eq("two"), eq(Foo.class));
|
||||
@@ -142,7 +141,7 @@ public class SimpleKeyValueRepositoryUnitTests {
|
||||
public void findAllIds() {
|
||||
|
||||
when(opsMock.findById(any(), any(Class.class))).thenReturn(Optional.empty());
|
||||
repo.findAllById(asList("one", "two", "three"));
|
||||
repo.findAllById(Arrays.asList("one", "two", "three"));
|
||||
|
||||
verify(opsMock, times(3)).findById(anyString(), eq(Foo.class));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user