Remove blank lines at the start of methods and loops.

This commit is contained in:
Peter Lawrey
2014-11-30 22:48:57 +02:00
parent adae564595
commit 1e40c765f8
36 changed files with 0 additions and 228 deletions
@@ -32,7 +32,6 @@ public class CHMUseCasesTest {
ChronicleMapBuilder.of(String.class, String.class).statelessClient(CONFIG)
)) {
try (ChronicleMap<String, String> map = chmb.create()) {
*/
try (ChronicleMap<String, String> map = ChronicleMapBuilder
.of(String.class, String.class)
@@ -144,7 +143,6 @@ public class CHMUseCasesTest {
.of(StringValue.class, StringValue.class)
.checkSerializedValues() // for testng purposes only
.create()) {
StringValue key1 = DataValueClasses.newDirectInstance(StringValue.class);
StringValue key2 = DataValueClasses.newInstance(StringValue.class);
StringValue value1 = DataValueClasses.newDirectInstance(StringValue.class);
@@ -295,7 +293,6 @@ public class CHMUseCasesTest {
.entrySize(16)
.disableOversizedEntries(true) // disabled for testing purposes only.
.create()) {
map.put(1L, 11L);
assertEquals((Long) 11L, map.get(1L));
@@ -343,7 +340,6 @@ public class CHMUseCasesTest {
.disableOversizedEntries(true) // disabled for testing purposes only.
.entrySize(16)
.create()) {
map.put(1.0, 11.0);
assertEquals((Double) 11.0, map.get(1.0));
@@ -763,7 +759,6 @@ public class CHMUseCasesTest {
.disableOversizedEntries(true) // disabled for testing purposes only.
.entrySize(6)
.create()) {
IntValue key1 = DataValueClasses.newDirectInstance(IntValue.class);
IntValue key2 = DataValueClasses.newInstance(IntValue.class);
ShortValue value1 = DataValueClasses.newDirectInstance(ShortValue.class);
@@ -1420,7 +1415,6 @@ public class CHMUseCasesTest {
.of(String.class, (Class<List<String>>) (Class) List.class)
.valueMarshaller(ListMarshaller.of(new StringMarshaller(8)))
.create()) {
map.put("1", Collections.<String>emptyList());
map.put("2", Arrays.asList("one"));
@@ -1451,7 +1445,6 @@ public class CHMUseCasesTest {
.of(String.class, (Class<Set<String>>) (Class) Set.class)
.valueMarshaller(SetMarshaller.of(new StringMarshaller(8)))
.create()) {
map.put("1", Collections.<String>emptySet());
map.put("2", new LinkedHashSet<String>(Arrays.asList("one")));
@@ -1482,7 +1475,6 @@ public class CHMUseCasesTest {
.of(String.class, (Class<Map<String, String>>) (Class) Map.class)
.valueMarshaller(MapMarshaller.of(new StringMarshaller(16), new StringMarshaller(16)))
.create()) {
map.put("1", Collections.<String, String>emptyMap());
map.put("2", mapOf("one", "uni"));
@@ -1513,7 +1505,6 @@ public class CHMUseCasesTest {
.of(String.class, (Class<Map<String, Integer>>) (Class) Map.class)
.valueMarshaller(MapMarshaller.of(new StringMarshaller(16), new GenericEnumMarshaller<Integer>(Integer.class, 16)))
.create()) {
map.put("1", Collections.<String, Integer>emptyMap());
map.put("2", mapOf("one", 1));
@@ -29,7 +29,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<String, String> expected = ChronicleMapBuilder.of(String.class, String
.class)
.create()) {
expected.put("hello", "world");
expected.put("aKey", "aValue");
expected.getAll(file);
@@ -37,7 +36,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<String, String> actual = ChronicleMapBuilder.of(String.class, String
.class)
.create()) {
actual.putAll(file);
Assert.assertEquals(expected, actual);
@@ -57,7 +55,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<String, Map> expected = ChronicleMapBuilder.of(String.class, Map
.class)
.create()) {
HashMap<String, String> data = new HashMap<>();
data.put("myKey", "myValue");
expected.put("hello", data);
@@ -66,7 +63,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<String, Map> actual = ChronicleMapBuilder.of(String.class, Map
.class)
.create()) {
actual.putAll(file);
Assert.assertEquals(expected, actual);
@@ -85,7 +81,6 @@ public class ChronicleMapImportExportTest {
System.out.println(file.getAbsoluteFile());
try (ChronicleMap expected = ChronicleMapBuilder.of
(String.class, Map.class).create()) {
HashMap<String, Map> data = new HashMap<>();
HashMap<String, String> data2 = new HashMap<>();
data2.put("nested", "map");
@@ -97,7 +92,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<String, Map> actual = ChronicleMapBuilder.of(String.class, Map
.class)
.create()) {
actual.putAll(file);
Assert.assertEquals(expected, actual);
@@ -116,7 +110,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<Integer, Double> expected = ChronicleMapBuilder.of(Integer.class, Double
.class)
.create()) {
expected.put(1, 1.0);
expected.getAll(file);
@@ -124,7 +117,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<Integer, Double> actual = ChronicleMapBuilder.of(Integer.class, Double
.class)
.create()) {
actual.putAll(file);
Assert.assertEquals(expected, actual);
@@ -144,7 +136,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<CharSequence, CharSequence> expected = ChronicleMapBuilder.of(CharSequence.class, CharSequence
.class)
.create()) {
expected.put("hello", "world");
expected.getAll(file);
@@ -152,7 +143,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<CharSequence, CharSequence> actual = ChronicleMapBuilder.of(CharSequence.class, CharSequence
.class)
.create()) {
actual.putAll(file);
Assert.assertEquals(expected, actual);
@@ -173,7 +163,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<CharSequence, LongValue> expected = ChronicleMapBuilder.of(CharSequence.class, LongValue
.class)
.create()) {
LongValue value = new LongValue$$Native();
// this will add the entry
@@ -189,7 +178,6 @@ public class ChronicleMapImportExportTest {
try (ChronicleMap<CharSequence, LongValue> actual = ChronicleMapBuilder.of(CharSequence.class, LongValue
.class)
.create()) {
actual.putAll(file);
Assert.assertEquals(expected, actual);
@@ -1479,7 +1479,6 @@ public class ChronicleMapTest {
.entrySize(16);
try (final ChronicleMap<CharSequence, String> map = builder.create()) {
// this will add the entry
try (WriteContext<?, String> context = map.acquireUsingLocked("one", "")) {
// do nothing
@@ -1496,7 +1495,6 @@ public class ChronicleMapTest {
.entrySize(40)
.defaultValue("")
.create()) {
StringBuilder value = new StringBuilder();
try (WriteContext<?, CharSequence> context = map.acquireUsingLocked("one", value)) {
@@ -59,7 +59,6 @@ public class ConcurrentMap8Test extends JSR166TestCase {
}
private static ConcurrentMap newIntegerStringMap() {
final ChronicleMapOnHeapUpdatableBuilder<Integer, String> builder = ChronicleMapBuilder.of(Integer.class,
String.class);
@@ -57,7 +57,6 @@ public class ConstantSizeBySampleTest {
.entries(100)
.actualSegments(1)
.create()) {
byte[] value = new byte[512 * 1024];
value[42] = 1;
@@ -95,7 +94,6 @@ public class ConstantSizeBySampleTest {
.entries(100)
.actualSegments(1)
.create()) {
ExternalizableData value = new ExternalizableData();
value.data[42] = 1;
map.put(1L, value);
@@ -123,7 +121,6 @@ public class ConstantSizeBySampleTest {
.entries(100)
.actualSegments(1)
.create()) {
SerializableData value = new SerializableData();
value.data[42] = 1;
map.put(1L, value);
@@ -23,7 +23,6 @@ public class DemoChronicleMapTest {
.removeReturnsNull(true)
.entries(maxEntries)
.createPersistedTo(file)) {
IntValue key = DataValueClasses.newDirectInstance(IntValue.class);
DemoOrderVOInterface value = DataValueClasses.newDirectReference(DemoOrderVOInterface.class);
@@ -44,7 +43,6 @@ public class DemoChronicleMapTest {
}
for (Map.Entry<IntValue, DemoOrderVOInterface> entry : map.entrySet()) {
IntValue k = entry.getKey();
DemoOrderVOInterface v = entry.getValue();
@@ -65,7 +63,6 @@ public class DemoChronicleMapTest {
.removeReturnsNull(true)
.entries(maxEntries)
.createPersistedTo(file)) {
IntValue key = DataValueClasses.newDirectInstance(IntValue.class);
DemoOrderVOInterface value = DataValueClasses.newDirectReference(DemoOrderVOInterface.class);
@@ -88,7 +85,6 @@ public class DemoChronicleMapTest {
}
for (Map.Entry<IntValue, DemoOrderVOInterface> entry : map.entrySet()) {
IntValue k = entry.getKey();
DemoOrderVOInterface v = entry.getValue();
@@ -40,7 +40,6 @@ public class IntValueMapTest {
.of(IntValue.class, CharSequence.class)
.entries(20000)
.keyMarshaller(ByteableIntValueMarshaller.INSTANCE).create()) {
IntValue$$Native value = new IntValue$$Native();
value.bytes(new ByteBufferBytes(ByteBuffer.allocateDirect(4)), 0);
@@ -37,7 +37,6 @@ public class Issue42Test {
.entrySize(18)
.entries(1500000)
.minSegments(128).create()) {
for (int i = 0; i < 1000000; ++i) {
String s = String.valueOf(i);
map.put(s, s);
@@ -58,7 +58,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@Override
public V replace(final K key, final V value) {
return check(new Call<K, V>() {
@Override
public Object method(ConcurrentMap<K, V> map) {
@@ -70,7 +69,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@Override
public int size() {
return check(new Call<K, V>() {
@Override
public Object method(ConcurrentMap<K, V> map) {
@@ -84,7 +82,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
R r1 = null;
R r2 = null;
for (int i = 0; i < 50; i++) {
r1 = (R) instance.method(map1);
r2 = (R) instance.method(map2);
@@ -113,7 +110,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@Override
public boolean isEmpty() {
return check(new Call<K, V>() {
@Override
public Object method(ConcurrentMap<K, V> map) {
@@ -125,7 +121,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@Override
public boolean containsKey(final Object key) {
return check(new Call<K, V>() {
@Override
public Object method(ConcurrentMap<K, V> map) {
@@ -137,7 +132,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@Override
public boolean containsValue(final Object value) {
return check(new Call<K, V>() {
@Override
public Object method(ConcurrentMap<K, V> map) {
@@ -149,7 +143,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@Override
public V get(final Object key) {
return check(new Call<K, V>() {
@Override
public Object method(ConcurrentMap<K, V> map) {
@@ -182,7 +175,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@NotNull
@Override
public Set<K> keySet() {
return check(new Call<K, V>() {
@Override
public Object method(ConcurrentMap<K, V> map) {
@@ -195,7 +187,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@NotNull
@Override
public Collection<V> values() {
return check(new Call<K, V>() {
@Override
public Collection<V> method(ConcurrentMap<K, V> map) {
@@ -208,7 +199,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
@NotNull
@Override
public Set<Entry<K, V>> entrySet() {
return check(new Call<K, V>() {
@Override
public Object method(ConcurrentMap<K, V> map) {
@@ -104,14 +104,12 @@ public class StatelessClientTest {
.defaultValue(new StringBuilder())
.replication((byte) 2, TcpTransportAndNetworkConfig.of(port))
.create()) {
serverMap.put(10, new StringBuilder("Hello World"));
try (ChronicleMap<Integer, StringBuilder> statelessMap = ChronicleMapBuilder.of(Integer
.class, StringBuilder.class)
.putReturnsNull(true)
.statelessClient(new InetSocketAddress("localhost", port)).create()) {
String actual = statelessMap.mapForKey(10, ToString.INSTANCE);
assertEquals("Hello World", actual);
@@ -127,13 +125,11 @@ public class StatelessClientTest {
.defaultValue(new StringBuilder())
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(port)).create()) {
serverMap.put(10, new StringBuilder("Hello World"));
try (ChronicleMap<Integer, StringBuilder> statelessMap = ChronicleMapBuilder.of(Integer
.class, StringBuilder.class)
.statelessClient(new InetSocketAddress("localhost", port)).create()) {
String actual = statelessMap.mapForKey(11, ToString.INSTANCE);
assertEquals(null, actual);
@@ -149,12 +145,10 @@ public class StatelessClientTest {
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(port))
.create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder
.of(Integer.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", port))
.create()) {
Map<Integer, CharSequence> payload = new HashMap<Integer, CharSequence>();
for (int i = 0; i < SIZE; i++) {
@@ -182,12 +176,10 @@ public class StatelessClientTest {
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(port))
.create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder
.of(Integer.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", port))
.create()) {
Map<Integer, CharSequence> payload = new HashMap<Integer, CharSequence>();
for (int i = 0; i < SIZE; i++) {
@@ -212,7 +204,6 @@ public class StatelessClientTest {
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(port))
.create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder
.of(Integer.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", port))
@@ -241,12 +232,10 @@ public class StatelessClientTest {
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(port))
.create()) {
serverMap.put(10, "EXAMPLE-10");
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder.of(Integer
.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", port)).create()) {
assertEquals("EXAMPLE-10", statelessMap.get(10));
assertEquals(1, statelessMap.size());
}
@@ -259,11 +248,9 @@ public class StatelessClientTest {
try (ChronicleMap<Integer, CharSequence> serverMap = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(port)).create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder.of(Integer
.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", port)).create()) {
serverMap.put(10, "EXAMPLE-10");
assertEquals("EXAMPLE-10", statelessMap.get(10));
@@ -280,12 +267,10 @@ public class StatelessClientTest {
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056))
.create()) {
try (ChronicleMap<String, Map> statelessMap = ChronicleMapBuilder
.of(String.class, Map.class)
.statelessClient(new InetSocketAddress("localhost", 8056))
.create()) {
serverMap.put("hello", Collections.singletonMap("hello", "world"));
assertEquals(Collections.singletonMap("hello", "world"), statelessMap.get("hello"));
@@ -309,12 +294,10 @@ public class StatelessClientTest {
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056))
.create()) {
try (ChronicleMap<String, Map> statelessMap = ChronicleMapBuilder
.of(String.class, Map.class)
.statelessClient(new InetSocketAddress("localhost", 8056))
.create()) {
statelessMap.put("hello", data);
assertEquals(data, serverMap.get("hello"));
@@ -330,12 +313,10 @@ public class StatelessClientTest {
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056))
.create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder
.of(Integer.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", 8056))
.create()) {
Map<Integer, CharSequence> payload = new HashMap<Integer, CharSequence>();
for (int i = 0; i < SIZE; i++) {
@@ -360,12 +341,10 @@ public class StatelessClientTest {
.entries(SIZE)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056))
.create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder
.of(Integer.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", 8056))
.create()) {
Map<Integer, CharSequence> payload = new HashMap<Integer, CharSequence>();
for (int i = 0; i < SIZE; i++) {
@@ -388,11 +367,9 @@ public class StatelessClientTest {
try (ChronicleMap<Integer, CharSequence> serverMap = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056)).create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder.of(Integer
.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", 8056)).create()) {
statelessMap.put(1, "some value");
assertEquals("some value", statelessMap.get(1));
@@ -407,11 +384,9 @@ public class StatelessClientTest {
try (ChronicleMap<Integer, CharSequence> serverMap = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056)).create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder.of(Integer
.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", 8056)).create()) {
statelessMap.put(1, "some value");
assertEquals("some value", statelessMap.get(1));
@@ -431,11 +406,9 @@ public class StatelessClientTest {
try (ChronicleMap<Integer, CharSequence> serverMap = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056)).create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder.of(Integer
.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", 8056)).create()) {
statelessMap.put(1, "some value");
assertEquals("some value", statelessMap.getLater(1).get());
@@ -455,11 +428,9 @@ public class StatelessClientTest {
try (ChronicleMap<Integer, CharSequence> serverMap = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056)).create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder.of(Integer
.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", 8056)).create()) {
CharSequence oldValue = statelessMap.putLater(1, "some value").get();
assertEquals("some value", statelessMap.get(1));
assertEquals(1, statelessMap.size());
@@ -473,7 +444,6 @@ public class StatelessClientTest {
try (ChronicleMap<Integer, CharSequence> serverMap = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056)).create()) {
try (ChronicleMap<Integer, CharSequence> statelessMap = ChronicleMapBuilder.of(Integer
.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", 8056)).create()) {
@@ -141,7 +141,6 @@ public class TCPSocketReplicationBootStrapTest {
@After
public void tearDown() {
for (final Closeable closeable : new Closeable[]{map1, map2}) {
try {
closeable.close();
@@ -109,7 +109,6 @@ public class TCPSocketReplicationIntValueTest {
}
private IntValue set(int x) {
value.setValue(x);
return value;
}
@@ -178,7 +177,6 @@ public class TCPSocketReplicationIntValueTest {
System.out.print(".");
Random rnd = new Random(j);
for (int i = 1; i < 10; i++) {
final int select = rnd.nextInt(2);
final ChronicleMap<IntValue, CharSequence> map = select > 0 ? map1 : map2;
@@ -94,7 +94,6 @@ public class TCPSocketReplicationNativeTest {
try (WriteContext<Integer, LongValue> c = map1
.acquireUsingLocked(1, value)) {
value.setValue(10);
}
@@ -112,13 +111,11 @@ public class TCPSocketReplicationNativeTest {
try (WriteContext<Integer, LongValue> c = map1
.acquireUsingLocked(1, value)) {
value.setValue(10);
}
try (WriteContext<Integer, LongValue> c = map1
.acquireUsingLocked(1, value)) {
value.setValue(20);
}
@@ -113,7 +113,6 @@ public class TCPSocketReplicationPostConnectionTest {
@After
public void tearDown() {
for (final Closeable closeable : new Closeable[]{map1, map2}) {
try {
if (closeable != null)
@@ -154,7 +154,6 @@ public class TCPSocketReplicationTest {
System.out.print(".");
Random rnd = new Random(j);
for (int i = 1; i < 10; i++) {
final int select = rnd.nextInt(2);
final ChronicleMap<Integer, CharSequence> map = select > 0 ? map1 : map2;
@@ -67,7 +67,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
.timeProvider(timeProvider)
.replication((byte) 1)
.create()) {
current(timeProvider);
// we do a put at the current time
@@ -125,7 +124,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
.timeProvider(timeProvider)
.replication((byte) 1)
.create()) {
current(timeProvider);
// we do a put at the current time
@@ -156,7 +154,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
.timeProvider(timeProvider)
.replication((byte) 1)
.create()) {
current(timeProvider);
// we do a put at the current time
@@ -185,7 +182,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
.timeProvider(timeProvider)
.replication((byte) 1)
.create()) {
current(timeProvider);
// we do a put at the current time
@@ -245,7 +241,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
.timeProvider(timeProvider)
.replication((byte) 1)
.create()) {
current(timeProvider);
// we do a put at the current time
@@ -278,7 +273,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
.timeProvider(timeProvider)
.replication((byte) 1)
.create()) {
current(timeProvider);
// we do a put at the current time
@@ -309,7 +303,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
.timeProvider(timeProvider)
.replication((byte) 1)
.create()) {
current(timeProvider);
// we do a put at the current time
@@ -195,7 +195,6 @@ public class StringEncodingExamplesTest {
.actualSegments(1)
.actualEntriesPerSegment(1000)
.create()) {
chineseWordSet.add("新闻");
chineseWordSet.add("地图");
chineseWordSet.add("贴吧");
@@ -95,7 +95,6 @@ public class ChronicleMapTest extends JSR166TestCase {
@Test(timeout = 5000)
public void testClear() throws IOException {
try (ChronicleMap<Integer, String> map = map5()) {
map.clear();
assertEquals(0, map.size());
}
@@ -154,7 +153,6 @@ public class ChronicleMapTest extends JSR166TestCase {
public void testIsEmpty() throws IOException {
try (ChronicleMap empty = newShmIntString(8078)) {
try (ChronicleMap map = map5()) {
if (!empty.isEmpty()) {
System.out.print("not empty " + empty);
}
@@ -391,7 +389,6 @@ public class ChronicleMapTest extends JSR166TestCase {
@Test(timeout = 5000)
public void testSize() throws IOException {
try (ChronicleMap map = map5()) {
try (ChronicleMap empty = newShmIntString(8078)) {
assertEquals(0, empty.size());
assertEquals(5, map.size());
@@ -405,7 +402,6 @@ public class ChronicleMapTest extends JSR166TestCase {
@Test(timeout = 10000)
public void testSize2() throws IOException {
try (ChronicleMap map = map5()) {
try (ChronicleMap empty = newShmIntString(8078)) {
assertEquals(0, empty.size());
assertEquals(5, map.size());
@@ -419,7 +415,6 @@ public class ChronicleMapTest extends JSR166TestCase {
@Test(timeout = 5000)
public void testSize3() throws IOException {
try (ChronicleMap map = map5()) {
try (ChronicleMap empty = newShmIntString(8078)) {
assertEquals(0, empty.size());
assertEquals(5, map.size());
@@ -343,7 +343,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
@Test(timeout = 10000)
public void testClear() throws IOException {
try (ChronicleMap<Integer, String> map = map5(s_port++)) {
map.clear();
assertEquals(0, map.size());
}
@@ -402,7 +401,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
public void testIsEmpty() throws IOException {
try (ChronicleMap empty = newShmIntString(s_port++)) {
try (ChronicleMap map = map5(s_port++)) {
if (!empty.isEmpty()) {
System.out.print("not empty " + empty);
}
@@ -636,7 +634,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
@Test(timeout = 5000)
public void testSize() throws IOException {
try (ChronicleMap map = map5(s_port++)) {
try (ChronicleMap empty = newShmIntString(s_port++)) {
assertEquals(0, empty.size());
assertEquals(5, map.size());
@@ -650,7 +647,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
@Test(timeout = 15000)
public void testSize2() throws IOException {
try (ChronicleMap map = map5(s_port++)) {
try (ChronicleMap empty = newShmIntString(s_port++)) {
assertEquals(0, empty.size());
assertEquals(5, map.size());
@@ -664,7 +660,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
@Test(timeout = 5000)
public void testSize3() throws IOException {
try (ChronicleMap map = map5(s_port++)) {
try (ChronicleMap empty = newShmIntString(s_port++)) {
assertEquals(0, empty.size());
assertEquals(5, map.size());
@@ -27,7 +27,6 @@ public class ChronicleSetBuilderTest {
public void test() throws Exception {
try (ChronicleSet<Integer> integers = ChronicleSetBuilder.of(Integer.class).create()) {
for (int i = 0; i < 10; i++) {
integers.add(i);
}
@@ -31,7 +31,6 @@ public class Issue3Test {
.actualSegments(1)
.actualEntriesPerSegment(1000)
.create()) {
Random r = new Random();
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 300; j++) {