DATAKV-137 - Polishing.

Remove whitespaces & unused imports, fix warnings.

Original Pull Request: #20
This commit is contained in:
Christoph Strobl
2016-06-14 08:02:19 +02:00
parent 302dfd407c
commit 0ad24ece59
4 changed files with 14 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ package org.springframework.data.keyvalue.repository.query;
import static org.hamcrest.core.IsNot.*;
import static org.hamcrest.core.IsSame.*;
import static org.junit.Assert.*;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
import java.lang.reflect.Method;
@@ -39,7 +39,7 @@ import org.springframework.data.repository.query.QueryMethod;
/**
* Unit tests for {@link CachingKeyValuePartTreeQuery}.
*
*
* @author Mark Paluch
*/
@RunWith(MockitoJUnitRunner.class)
@@ -50,6 +50,7 @@ public class CachingKeyValuePartTreeQueryUnitTests {
@Mock ProjectionFactory projectionFactoryMock;
@Before
@SuppressWarnings({ "unchecked", "rawtypes" })
public void setUp() throws Exception {
when(metadataMock.getDomainType()).thenReturn((Class) Person.class);
@@ -60,7 +61,6 @@ public class CachingKeyValuePartTreeQueryUnitTests {
* @see DATAKV-137
*/
@Test
@SuppressWarnings({ "unchecked", "rawtypes" })
public void cachedSpelExpressionShouldBeReusedWithNewContext() throws NoSuchMethodException, SecurityException {
QueryMethod qm = new QueryMethod(Repo.class.getMethod("findByFirstname", String.class), metadataMock,