#257 - Guard Redis Geo tests with a minimum required version.

Redis Geo tests are skipped if the minimum Redis version rule of version 3.2 is not met.
This commit is contained in:
Mark Paluch
2017-01-30 09:21:37 +01:00
parent 9a2e95a784
commit 3d5a30510c
3 changed files with 62 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ import org.springframework.test.context.junit4.SpringRunner;
public class GeoOperationsTests {
// we only want to run this tests when redis is up an running
public static @ClassRule RequiresRedisServer requiresServer = RequiresRedisServer.onLocalhost();
public static @ClassRule RequiresRedisServer requiresServer = RequiresRedisServer.onLocalhost().atLeast("3.2");
@Autowired RedisOperations<String, String> operations;
GeoOperations<String, String> geoOperations;