Whitespace
This commit is contained in:
parent
8dd0cc14bc
commit
14684f2b34
|
@ -54,10 +54,12 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
this.subSortedValues.subList(SUBSIZE, this.subSortedValues.size()).clear();
|
this.subSortedValues.subList(SUBSIZE, this.subSortedValues.size()).clear();
|
||||||
this.subSortedNewValues.addAll(Arrays.asList(main.getNewSampleValues()).subList(0, SUBSIZE));
|
this.subSortedNewValues.addAll(Arrays.asList(main.getNewSampleValues()).subList(0, SUBSIZE));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCompatibilityVersion() {
|
public String getCompatibilityVersion() {
|
||||||
return main.getCompatibilityVersion() + ".HeadMapView";
|
return main.getCompatibilityVersion() + ".HeadMapView";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SortedMap<K, V> makeFullMap() {
|
public SortedMap<K, V> makeFullMap() {
|
||||||
return ((SortedMap<K, V>) main.makeFullMap()).headMap(toKey);
|
return ((SortedMap<K, V>) main.makeFullMap()).headMap(toKey);
|
||||||
|
@ -119,6 +121,7 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
public String getCompatibilityVersion() {
|
public String getCompatibilityVersion() {
|
||||||
return main.getCompatibilityVersion() + ".SubMapView";
|
return main.getCompatibilityVersion() + ".SubMapView";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SortedMap<K, V> makeFullMap() {
|
public SortedMap<K, V> makeFullMap() {
|
||||||
return ((SortedMap<K, V>) main.makeFullMap()).subMap(fromKey, toKey);
|
return ((SortedMap<K, V>) main.makeFullMap()).subMap(fromKey, toKey);
|
||||||
|
@ -129,6 +132,7 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
// done this way so toKey is correctly set in the returned map
|
// done this way so toKey is correctly set in the returned map
|
||||||
return ((SortedMap<K, V>) main.makeObject()).subMap(fromKey, toKey);
|
return ((SortedMap<K, V>) main.makeObject()).subMap(fromKey, toKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSubMapOutOfRange() {
|
public void testSubMapOutOfRange() {
|
||||||
if (!isPutAddSupported()) {
|
if (!isPutAddSupported()) {
|
||||||
|
@ -169,10 +173,12 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
this.subSortedValues.subList(0, this.subSortedValues.size() - SUBSIZE).clear();
|
this.subSortedValues.subList(0, this.subSortedValues.size() - SUBSIZE).clear();
|
||||||
this.subSortedNewValues.addAll(Arrays.asList(main.getNewSampleValues()).subList(0, SUBSIZE));
|
this.subSortedNewValues.addAll(Arrays.asList(main.getNewSampleValues()).subList(0, SUBSIZE));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCompatibilityVersion() {
|
public String getCompatibilityVersion() {
|
||||||
return main.getCompatibilityVersion() + ".TailMapView";
|
return main.getCompatibilityVersion() + ".TailMapView";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SortedMap<K, V> makeFullMap() {
|
public SortedMap<K, V> makeFullMap() {
|
||||||
return ((SortedMap<K, V>) main.makeFullMap()).tailMap(fromKey);
|
return ((SortedMap<K, V>) main.makeFullMap()).tailMap(fromKey);
|
||||||
|
@ -183,6 +189,7 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
// done this way so toKey is correctly set in the returned map
|
// done this way so toKey is correctly set in the returned map
|
||||||
return ((SortedMap<K, V>) main.makeObject()).tailMap(fromKey);
|
return ((SortedMap<K, V>) main.makeObject()).tailMap(fromKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testTailMapOutOfRange() {
|
public void testTailMapOutOfRange() {
|
||||||
if (!isPutAddSupported()) {
|
if (!isPutAddSupported()) {
|
||||||
|
@ -215,28 +222,34 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
super(name);
|
super(name);
|
||||||
this.main = main;
|
this.main = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BulkTest bulkTestHeadMap() {
|
public BulkTest bulkTestHeadMap() {
|
||||||
return null; // block infinite recursion
|
return null; // block infinite recursion
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BulkTest bulkTestSubMap() {
|
public BulkTest bulkTestSubMap() {
|
||||||
return null; // block infinite recursion
|
return null; // block infinite recursion
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BulkTest bulkTestTailMap() {
|
public BulkTest bulkTestTailMap() {
|
||||||
return null; // block infinite recursion
|
return null; // block infinite recursion
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public V[] getNewSampleValues() {
|
public V[] getNewSampleValues() {
|
||||||
return (V[]) subSortedNewValues.toArray();
|
return (V[]) subSortedNewValues.toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public K[] getSampleKeys() {
|
public K[] getSampleKeys() {
|
||||||
return (K[]) subSortedKeys.toArray();
|
return (K[]) subSortedKeys.toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public V[] getSampleValues() {
|
public V[] getSampleValues() {
|
||||||
|
@ -247,10 +260,12 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
public boolean isAllowNullKey() {
|
public boolean isAllowNullKey() {
|
||||||
return main.isAllowNullKey();
|
return main.isAllowNullKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAllowNullValue() {
|
public boolean isAllowNullValue() {
|
||||||
return main.isAllowNullValue();
|
return main.isAllowNullValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isPutAddSupported() {
|
public boolean isPutAddSupported() {
|
||||||
return main.isPutAddSupported();
|
return main.isPutAddSupported();
|
||||||
|
@ -260,10 +275,12 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
public boolean isPutChangeSupported() {
|
public boolean isPutChangeSupported() {
|
||||||
return main.isPutChangeSupported();
|
return main.isPutChangeSupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isRemoveSupported() {
|
public boolean isRemoveSupported() {
|
||||||
return main.isRemoveSupported();
|
return main.isRemoveSupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isTestSerialization() {
|
public boolean isTestSerialization() {
|
||||||
return false;
|
return false;
|
||||||
|
@ -284,18 +301,21 @@ public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V>
|
||||||
// if (main.isSubMapViewsSerializable() == false) return;
|
// if (main.isSubMapViewsSerializable() == false) return;
|
||||||
// super.testFullMapCompatibility();
|
// super.testFullMapCompatibility();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void resetEmpty() {
|
public void resetEmpty() {
|
||||||
// needed to init verify correctly
|
// needed to init verify correctly
|
||||||
main.resetEmpty();
|
main.resetEmpty();
|
||||||
super.resetEmpty();
|
super.resetEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void resetFull() {
|
public void resetFull() {
|
||||||
// needed to init verify correctly
|
// needed to init verify correctly
|
||||||
main.resetFull();
|
main.resetFull();
|
||||||
super.resetFull();
|
super.resetFull();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void verify() {
|
public void verify() {
|
||||||
// cross verify changes on view with changes on main map
|
// cross verify changes on view with changes on main map
|
||||||
|
|
Loading…
Reference in New Issue