DATAREDIS-309 - Refactor test profiles to support more than 2 versions.

We’ve added a customized SpringJUnit4Runner and TestRule that allow us to use a more relaxed strategy when dealing with @IfProfileValue. Basically we have added ‘+’ as sort of wildcard indicating tests should be executed for version X and all its successor.

This allows us to run test valid starting 2.6 for 2.8 as well, while those only valid for 2.8 are not executed against eg. redis 2.6.17.

Fixed compile error in ScanCursor with Java 6.

Orignal pull request: #76.
This commit is contained in:
Thomas Darimont
2014-05-28 14:20:24 +02:00
parent 34d1759b4e
commit 29e70b8cd8
26 changed files with 397 additions and 185 deletions

View File

@@ -77,7 +77,7 @@ public abstract class ScanCursor<T> implements Cursor<T> {
this.scanOptions = options != null ? options : ScanOptions.NONE;
this.cursorId = cursorId;
this.state = CursorState.READY;
this.delegate = Collections.emptyIterator();
this.delegate = Collections.<T> emptyList().iterator();
}
private void scan(long cursorId) {
@@ -143,7 +143,7 @@ public abstract class ScanCursor<T> implements Cursor<T> {
}
private void resetDelegate() {
delegate = Collections.emptyIterator();
delegate = Collections.<T> emptyList().iterator();
}
/*