RevisionVector from empty string throws StringIndexOutOfBoundsException
Add ignored test
@@ -19,6 +19,7 @@ package org.apache.jackrabbit.oak.plugins.document;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
+import org.junit.Ignore;
import org.junit.Test;
import static com.google.common.collect.Sets.newHashSet;
@@ -429,6 +430,12 @@ public class RevisionVectorTest {
assertEquals(2, rv.getDimensions());
rv = rv.remove(1);
assertEquals(1, rv.getDimensions());
+ }
+ @Ignore
+ @Test
+ public void emptyAsFromString() {
+ RevisionVector empty = new RevisionVector();
+ assertEquals(empty, RevisionVector.fromString(empty.asString()));
}
}
