DATAJPA-1248 - Polishing.
Removed superfluous modifiers and throws declarations. Used Collections.singletonList where appropriate. Original pull request: #245.
This commit is contained in:
committed by
Oliver Gierke
parent
4d62b90f79
commit
fee9b9276c
@@ -67,9 +67,9 @@ public class TupleConverterUnitTests {
|
||||
|
||||
@Test // DATAJPA-984
|
||||
@SuppressWarnings("unchecked")
|
||||
public void returnsSingleTupleElementIfItMatchesExpectedType() throws Exception {
|
||||
public void returnsSingleTupleElementIfItMatchesExpectedType() {
|
||||
|
||||
doReturn(Arrays.asList(element)).when(tuple).getElements();
|
||||
doReturn(Collections.singletonList(element)).when(tuple).getElements();
|
||||
doReturn("Foo").when(tuple).get(element);
|
||||
|
||||
TupleConverter converter = new TupleConverter(type);
|
||||
@@ -79,7 +79,7 @@ public class TupleConverterUnitTests {
|
||||
|
||||
@Test // DATAJPA-1024
|
||||
@SuppressWarnings("unchecked")
|
||||
public void returnsNullForSingleElementTupleWithNullValue() throws Exception {
|
||||
public void returnsNullForSingleElementTupleWithNullValue() {
|
||||
|
||||
doReturn(Collections.singletonList(element)).when(tuple).getElements();
|
||||
doReturn(null).when(tuple).get(element);
|
||||
|
||||
Reference in New Issue
Block a user