DATACMNS-498 - Removed assumption form RepositoryFactorySupportUnitTests.

We now run the test case for the query method execution with Futures on Spring 3.2 as well (as SPR-11725 was fixed recently).

Related tickets: DATACMNS-489, DATACMNS-499, SPR-11725.
This commit is contained in:
Oliver Gierke
2014-05-19 09:05:49 +02:00
parent c4c9d02638
commit 1d8717712c

View File

@@ -26,7 +26,6 @@ import java.util.List;
import java.util.Set;
import java.util.concurrent.Future;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -36,7 +35,6 @@ import org.mockito.invocation.InvocationOnMock;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.stubbing.Answer;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.core.SpringVersion;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
@@ -146,9 +144,6 @@ public class RepositoryFactorySupportUnitTests {
@Test
public void wrapsExecutionResultIntoFutureIfConfigured() throws Exception {
// TODO: Remove once Spring 3.2.9 is released.
Assume.assumeThat(SpringVersion.getVersion().startsWith("4"), is(true));
final Object reference = new Object();
when(factory.queryOne.execute(Mockito.any(Object[].class))).then(new Answer<Object>() {