Remove blank lines before }

This commit is contained in:
Peter Lawrey
2014-11-30 22:46:22 +02:00
parent 6d4b143903
commit adae564595
58 changed files with 0 additions and 275 deletions
@@ -23,14 +23,11 @@ import junit.framework.TestCase;
public class BitUnitTest extends TestCase {
public void testToBits() throws Exception {
}
public void testToMegaBits() throws Exception {
}
public void testToGigaBits() throws Exception {
}
}
@@ -58,7 +58,6 @@ enum ByteableIntValueMarshaller implements BytesMarshaller<IntValue> {
} catch (Exception e) {
throw new IllegalStateException(e);
}
}
}
@@ -58,7 +58,6 @@ enum ByteableLongValueMarshaller implements BytesMarshaller<LongValue> {
} catch (Exception e) {
throw new IllegalStateException(e);
}
}
}
@@ -58,7 +58,6 @@ public class CHMMetaDataTest {
map.close();
file.delete();
}
}
private static class StringStringMapEventListener
@@ -89,7 +89,6 @@ public class CHMTest5 {
if (!locked) {
System.out.println("Unable to acquire a lock on the time array - exiting");
System.exit(0);
}
try {
//we've got the lock, now copy the array
@@ -119,7 +118,6 @@ public class CHMTest5 {
if (!locked) {
System.out.println("Unable to acquire a lock on the time array - exiting");
System.exit(0);
}
try {
//we've got the lock, now copy the array
@@ -155,7 +153,6 @@ public class CHMTest5 {
if (!locked) {
System.out.println("Unable to acquire a lock on the time array - exiting");
System.exit(0);
}
try {
data.setTimeAt(slotindex, timenow);
@@ -197,7 +194,6 @@ public class CHMTest5 {
if (!locked) {
System.out.println("Unable to acquire a lock on the time array - exiting");
System.exit(0);
}
try {
if (lastUpdateTime == data.getTimeAt(slotindex)) {
@@ -50,11 +50,9 @@ public class CHMTestIterator1 {
for (Map.Entry<String, Long> entry : chm.entrySet()) {
entry.getKey();
entry.getValue();
}
long time = System.nanoTime() - start;
System.out.println("Average iteration time was " + time / runs / 1e3 + "us, for " + runs / 1e6 + "m entries");
}
}
@@ -279,7 +279,6 @@ public class CHMUseCasesTest {
});
fail("Update of Integer not supported");
} catch (Exception todoMoreSpecificException) {
}
assertEquals(null, map.putLater(3, 4).get());
@@ -328,7 +327,6 @@ public class CHMUseCasesTest {
});
fail("Update of Long not supported");
} catch (Exception todoMoreSpecificException) {
}
assertEquals(null, map.putLater(3L, 4L).get());
@@ -377,7 +375,6 @@ public class CHMUseCasesTest {
});
fail("Update of Double not supported");
} catch (Exception todoMoreSpecificException) {
}
assertEquals(null, map.putLater(3.0, 4.0).get());
@@ -1415,7 +1412,6 @@ public class CHMUseCasesTest {
*/
@Test
public void testBeanBeanMap() {
}
@Test
@@ -130,7 +130,6 @@ public class ChannelReplicationTest {
assertTrue("map1a.empty", !map1a.isEmpty());
assertTrue("map2a.empty", !map2a.isEmpty());
}
/**
@@ -147,7 +146,6 @@ public class ChannelReplicationTest {
break;
Thread.sleep(1);
}
}
}
@@ -45,7 +45,6 @@ public class ChronicleMapImportExportTest {
} finally {
file.delete();
}
}
@Test
@@ -75,7 +74,6 @@ public class ChronicleMapImportExportTest {
} finally {
file.delete();
}
}
@Test
@@ -107,7 +105,6 @@ public class ChronicleMapImportExportTest {
} finally {
file.delete();
}
}
@Test
@@ -135,7 +132,6 @@ public class ChronicleMapImportExportTest {
} finally {
file.delete();
}
}
@Test
@@ -164,7 +160,6 @@ public class ChronicleMapImportExportTest {
} finally {
file.delete();
}
}
@Ignore("this type of off heap reference is not currently supported")
@@ -202,7 +197,6 @@ public class ChronicleMapImportExportTest {
} finally {
file.delete();
}
}
}
@@ -1484,9 +1484,7 @@ public class ChronicleMapTest {
try (WriteContext<?, String> context = map.acquireUsingLocked("one", "")) {
// do nothing
}
}
}
@Test
@@ -56,7 +56,6 @@ public class ConcurrentMap8Test extends JSR166TestCase {
}
// return new ConcurrentMap(5);
}
private static ConcurrentMap newIntegerStringMap() {
@@ -75,7 +74,6 @@ public class ConcurrentMap8Test extends JSR166TestCase {
} catch (IOException e) {
throw new IllegalStateException(e);
}
}
*//**
@@ -118,7 +118,6 @@ public class EventListenerTestWithTCPSocketReplication {
Assert.assertTrue("The eventListener.onPut should have been called", putWasCalled.get());
Assert.assertEquals(Integer.valueOf(5), keyRef.get());
Assert.assertEquals("EXAMPLE", valueRef.get());
}
@Test
@@ -132,7 +131,6 @@ public class EventListenerTestWithTCPSocketReplication {
ChronicleMapBuilder<Integer, CharSequence> map1Builder = serverBuilder();
map1 = map1Builder.create();
}
// ---------- SERVER2 2 on the same server as ----------
@@ -150,7 +148,6 @@ public class EventListenerTestWithTCPSocketReplication {
Assert.assertEquals(Integer.valueOf(5), keyRef.get());
Assert.assertEquals("EXAMPLE", valueRef.get());
Assert.assertEquals("WILL_GET_OVER-WRITTEN", replacedValueRef.get());
}
@Test
@@ -162,7 +159,6 @@ public class EventListenerTestWithTCPSocketReplication {
// we connect the maps via a TCP socket connection on port 8077
map1 = serverBuilder().create();
}
// ---------- SERVER2 2 on the same server as ----------
@@ -181,7 +177,6 @@ public class EventListenerTestWithTCPSocketReplication {
Assert.assertEquals(Integer.valueOf(5), keyRef.get());
Assert.assertEquals("small", replacedValueRef.get());
Assert.assertEquals("EXAMPLE", valueRef.get());
}
@Test
@@ -196,7 +191,6 @@ public class EventListenerTestWithTCPSocketReplication {
ChronicleMapBuilder<Integer, CharSequence> map1Builder = serverBuilder();
map1 = map1Builder.create();
}
// ---------- SERVER2 2 on the same server as ----------
@@ -48,6 +48,5 @@ public class Issue42Test {
Assert.assertEquals(s, map.get(s));
}
}
}
}
@@ -50,6 +50,5 @@ public class KeySizesTest {
}
((Closeable) map).close();
}
}
@@ -81,7 +81,6 @@ public class MapByNameTest {
// mapByName.add(builder);
ChronicleMap<CharSequence, CharSequence> myMap2 = mapByName.from("myMap");
}
public static void main(String... args) throws IOException, InterruptedException, TimeoutException {
@@ -107,7 +106,6 @@ public class MapByNameTest {
System.out.print(map);
map.close();
}
}
@@ -104,7 +104,6 @@ public class NodeDiscoveryBroadcasterTest extends TestCase {
// in this case given that there is only this node in the grid and one node joining,
// it will only be the node that has the bootstrap and this node, who's data will be sent
server2BytesExternalizable.writeMarshallable(udpData);
}
// SERER1
@@ -120,7 +119,6 @@ public class NodeDiscoveryBroadcasterTest extends TestCase {
Assert.assertTrue(server1BytesExternalizable.getRemoteNodes().identifiers().get
(SERVER2_IDENTIFER));
}
// SERVER 1
@@ -142,7 +140,6 @@ public class NodeDiscoveryBroadcasterTest extends TestCase {
bytesExternalizable.sendBootStrap(proposedNodes);
bytesExternalizable.writeMarshallable(udpData);
}
// SERVER 2 - is the node already in the cluster
@@ -169,7 +166,6 @@ public class NodeDiscoveryBroadcasterTest extends TestCase {
// in this case given that there is only this node in the grid and one node joining,
// it will only be the node that has the bootstrap and this node, who's data will be sent
server2BytesExternalizable.writeMarshallable(udpData);
}
// SERVER 1
@@ -187,9 +183,7 @@ public class NodeDiscoveryBroadcasterTest extends TestCase {
Assert.assertTrue(server1BytesExternalizable.proposedIdentifiersWithHost.values().contains
(new DiscoveryNodeBytesMarshallable.ProposedNodes(server1AddressAndPort, (byte) PROPOSED_IDENTIFIER)));
}
}
}
@@ -94,7 +94,6 @@ public class PostChannelCreationTest {
.entries(1000)
.instance().replicatedViaChannel(hubB.createChannel((short) 2)).create();
}
}
@After
@@ -130,7 +129,6 @@ public class PostChannelCreationTest {
assertTrue("map1a.empty", !map1a.isEmpty());
assertTrue("map2a.empty", !map2a.isEmpty());
}
/**
@@ -147,7 +145,6 @@ public class PostChannelCreationTest {
break;
Thread.sleep(1);
}
}
}
@@ -38,13 +38,11 @@ public class ReplicatedChronicleMapTest extends JSR166TestCase {
ChronicleMap<Integer, CharSequence> newShmIntString() throws IOException {
return ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.create();
}
ChronicleMap<CharSequence, CharSequence> newShmStringString() throws IOException {
return ChronicleMapBuilder.of(CharSequence.class, CharSequence.class)
.create();
}
/**
@@ -78,7 +78,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
}
}
);
}
public <R> R check(Call instance) {
@@ -98,10 +97,8 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
} catch (InterruptedException e) {
e.printStackTrace();
}
} else
Thread.yield();
}
Assert.assertEquals(map1, map2);
@@ -112,7 +109,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
Assert.assertEquals(r1.toString(), r2.toString());
return (R) r1;
}
@Override
@@ -125,7 +121,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
}
}
);
}
@Override
@@ -138,7 +133,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
}
}
);
}
@Override
@@ -151,7 +145,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
}
}
);
}
@Override
@@ -164,7 +157,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
}
}
);
}
@Override
@@ -198,7 +190,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
}
}
);
}
@NotNull
@@ -212,7 +203,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
}
}
);
}
@NotNull
@@ -226,7 +216,6 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
}
}
);
}
@Override
@@ -111,9 +111,7 @@ public class SerializerTest {
Object actual = keyReaderWithSize.read(in, null);
Assert.assertEquals(actual, key);
}
}
public static class MyTestClassExternalizable implements Externalizable {
@@ -229,7 +227,6 @@ public class SerializerTest {
MyTestClass delegate;
public MyTestClassObjectGraph() {
}
MyTestClassObjectGraph(int a) {
@@ -115,7 +115,6 @@ public class SingleMapChannelTest {
Assert.assertEquals("map1a=map1b", map1a, map1b);
assertTrue("map1a.empty", !map1a.isEmpty());
}
/**
@@ -132,7 +131,6 @@ public class SingleMapChannelTest {
break;
Thread.sleep(1);
}
}
}
@@ -169,7 +169,6 @@ public class StatelessClientTest {
assertEquals("some value=" + next.getKey(), next.getValue());
assertEquals(SIZE, entries.size());
}
}
}
@@ -200,7 +199,6 @@ public class StatelessClientTest {
Collection<CharSequence> values = statelessMap.values();
assertEquals(values.size(), SIZE);
}
}
}
@@ -230,7 +228,6 @@ public class StatelessClientTest {
final Set<Integer> keys = statelessMap.keySet();
assertEquals(keys.size(), payload.size());
}
}
}
@@ -271,11 +268,8 @@ public class StatelessClientTest {
assertEquals("EXAMPLE-10", statelessMap.get(10));
assertEquals(1, statelessMap.size());
}
}
}
@Test(timeout = 10000)
@@ -296,11 +290,8 @@ public class StatelessClientTest {
assertEquals(Collections.singletonMap("hello", "world"), statelessMap.get("hello"));
assertEquals(1, statelessMap.size());
}
}
}
@Test(timeout = 10000)
@@ -328,11 +319,8 @@ public class StatelessClientTest {
assertEquals(data, serverMap.get("hello"));
assertEquals(1, statelessMap.size());
}
}
}
@Test(timeout = 10000)
@@ -360,7 +348,6 @@ public class StatelessClientTest {
assertEquals("some value=" + value, statelessMap.get(value));
assertEquals(SIZE, statelessMap.size());
}
}
}
@@ -391,10 +378,8 @@ public class StatelessClientTest {
assertEquals("some value=" + value, statelessMap.get(value));
assertEquals(SIZE, statelessMap.size());
}
}
}
@Test(timeout = 10000)
@@ -412,7 +397,6 @@ public class StatelessClientTest {
assertEquals("some value", statelessMap.get(1));
assertEquals(1, statelessMap.size());
}
}
}
@@ -437,10 +421,8 @@ public class StatelessClientTest {
assertEquals(null, statelessMap.get(1));
assertEquals(0, statelessMap.size());
}
}
}
@Test(timeout = 10000)
@@ -463,10 +445,8 @@ public class StatelessClientTest {
assertEquals(null, statelessMap.getLater(1).get());
assertEquals(0, statelessMap.size());
}
}
}
@Test
@@ -483,10 +463,8 @@ public class StatelessClientTest {
CharSequence oldValue = statelessMap.putLater(1, "some value").get();
assertEquals("some value", statelessMap.get(1));
assertEquals(1, statelessMap.size());
}
}
}
@Test(timeout = 10000)
@@ -503,10 +481,8 @@ public class StatelessClientTest {
statelessMap.removeLater(1).get();
assertEquals(null, statelessMap.get(1));
assertEquals(0, statelessMap.size());
}
}
}
@Test(timeout = 10000)
@@ -523,7 +499,6 @@ public class StatelessClientTest {
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8056)).create();
serverMap2 = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8077)).create();
}
// stateless client
@@ -549,6 +524,5 @@ public class StatelessClientTest {
serverMap1.close();
serverMap2.close();
}
}
@@ -85,7 +85,6 @@ public class TCPSocketReplication3VoidValueTest {
assertEquals(map3, map2);
assertTrue(!map1.isEmpty());
}
@Test
@@ -107,7 +106,6 @@ public class TCPSocketReplication3VoidValueTest {
assertEquals(map3, map3);
assertTrue(!map1.isEmpty());
}
@Test
@@ -128,7 +126,6 @@ public class TCPSocketReplication3VoidValueTest {
assertEquals(map3, map3);
assertTrue(!map1.isEmpty());
}
private boolean waitTillEqual(final int timeOutMs) throws InterruptedException {
@@ -100,7 +100,6 @@ public class TCPSocketReplication3wayPutReturnsNullTest {
assertEquals(map1, map2);
assertEquals(map3, map2);
assertTrue(!map1.isEmpty());
}
@Test
@@ -124,7 +123,6 @@ public class TCPSocketReplication3wayPutReturnsNullTest {
assertEquals(map1, map2);
assertEquals(map3, map3);
assertTrue(!map1.isEmpty());
}
@Test
@@ -149,7 +147,6 @@ public class TCPSocketReplication3wayPutReturnsNullTest {
assertEquals(map1, map2);
assertEquals(map3, map3);
assertTrue(!map1.isEmpty());
}
private void waitTillEqual(final int timeOutMs) throws InterruptedException {
@@ -161,7 +158,6 @@ public class TCPSocketReplication3wayPutReturnsNullTest {
break;
Thread.sleep(1);
}
}
}
@@ -84,7 +84,6 @@ public class TCPSocketReplication3wayTest {
assertEquals(map1, map2);
assertEquals(map3, map2);
assertTrue(!map1.isEmpty());
}
@Test
@@ -108,7 +107,6 @@ public class TCPSocketReplication3wayTest {
assertEquals(map1, map2);
assertEquals(map3, map3);
assertTrue(!map1.isEmpty());
}
@Test
@@ -131,7 +129,6 @@ public class TCPSocketReplication3wayTest {
assertEquals(map1, map2);
assertEquals(map3, map3);
assertTrue(!map1.isEmpty());
}
@Test
@@ -156,7 +153,6 @@ public class TCPSocketReplication3wayTest {
assertEquals(map1, map2);
assertEquals(map3, map3);
assertTrue(!map1.isEmpty());
}
private void waitTillEqual(final int timeOutMs) throws InterruptedException {
@@ -168,7 +164,6 @@ public class TCPSocketReplication3wayTest {
break;
Thread.sleep(1);
}
}
}
@@ -102,7 +102,6 @@ public class TCPSocketReplication4WayMapTest {
assertEquals("map3", map1, map3);
assertEquals("map4", map1, map4);
assertTrue("map2.empty", !map2.isEmpty());
}
@Test
@@ -119,7 +118,6 @@ public class TCPSocketReplication4WayMapTest {
assertEquals("map3", map1, map3);
assertEquals("map4", map1, map4);
assertTrue("map2.empty", !map2.isEmpty());
}
@Test
@@ -141,7 +139,6 @@ public class TCPSocketReplication4WayMapTest {
assertEquals("map3", map1, map3);
assertEquals("map4", map1, map4);
assertTrue("map2.empty", !map2.isEmpty());
}
/**
@@ -163,7 +160,6 @@ public class TCPSocketReplication4WayMapTest {
break;
Thread.sleep(1);
}
}
}
@@ -85,7 +85,6 @@ public class TCPSocketReplicationBootStrapTest {
// add data into it
waitTillEqual(5000);
assertEquals("ADDED WHEN DISCONNECTED TO MAP1", map1.get(11));
}
@Test
@@ -138,7 +137,6 @@ public class TCPSocketReplicationBootStrapTest {
// add data into it
waitTillEqual(20000000);
assertEquals("ADDED WHEN DISCONNECTED TO MAP1", map1.get(11));
}
@After
@@ -179,7 +177,6 @@ public class TCPSocketReplicationBootStrapTest {
break;
Thread.sleep(1);
}
}
}
@@ -135,7 +135,6 @@ public class TCPSocketReplicationIntValueTest {
assertEquals(map1, map2);
assertTrue(!map1.isEmpty());
}
@Test
@@ -150,7 +149,6 @@ public class TCPSocketReplicationIntValueTest {
assertEquals(map1, map2);
assertTrue(!map2.isEmpty());
}
/**
@@ -190,7 +188,6 @@ public class TCPSocketReplicationIntValueTest {
map.remove(set(rnd.nextInt(Builder.SIZE)));
}
}
}
waitTillEqual(10000);
@@ -199,7 +196,6 @@ public class TCPSocketReplicationIntValueTest {
//assertTrue("timeTaken="+time, time < 2200);
System.out.println("\ntime taken millis=" + time);
}
}
@@ -60,7 +60,6 @@ public class TCPSocketReplicationNativeTest {
map2 = ChronicleMapBuilder.of(Integer.class, LongValue.class)
.replication((byte) 2, tcpConfig2).create();
}
@After
@@ -104,7 +103,6 @@ public class TCPSocketReplicationNativeTest {
assertEquals(map1, map2);
assertTrue(!map1.isEmpty());
}
@Test
@@ -129,7 +127,6 @@ public class TCPSocketReplicationNativeTest {
assertEquals(map1, map2);
assertTrue(!map1.isEmpty());
}
/**
@@ -145,7 +142,6 @@ public class TCPSocketReplicationNativeTest {
break;
Thread.sleep(1);
}
}
}
@@ -67,7 +67,6 @@ public class TCPSocketReplicationPostConnectionTest {
assertEquals(map1, map2);
assertTrue(!map1.isEmpty());
}
@Test
@@ -82,7 +81,6 @@ public class TCPSocketReplicationPostConnectionTest {
assertEquals(map1, map2);
assertTrue(!map1.isEmpty());
}
@Test
@@ -97,7 +95,6 @@ public class TCPSocketReplicationPostConnectionTest {
Thread.sleep(1);
map1.put(5, "EXAMPLE-2");
}
Thread.sleep(1);
@@ -112,7 +109,6 @@ public class TCPSocketReplicationPostConnectionTest {
assertEquals(map1, map2);
assertTrue(!map1.isEmpty());
assertTrue(map2.get(6).equals("EXAMPLE-1"));
}
@After
@@ -142,7 +138,6 @@ public class TCPSocketReplicationPostConnectionTest {
break;
Thread.sleep(1);
}
}
}
@@ -114,7 +114,6 @@ public class TCPSocketReplicationTest {
assertEquals(map1, map2);
assertTrue(!map1.isEmpty());
}
@Test
@@ -129,7 +128,6 @@ public class TCPSocketReplicationTest {
assertEquals(map1, map2);
assertTrue(!map2.isEmpty());
}
/**
@@ -145,7 +143,6 @@ public class TCPSocketReplicationTest {
break;
Thread.sleep(1);
}
}
// TODO test this with larger sizes.
@@ -170,11 +167,9 @@ public class TCPSocketReplicationTest {
break;
}
}
}
System.out.println("");
waitTillEqual(10000);
}
}
@@ -144,7 +144,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
current(timeProvider);
assertEquals(map.size(), 1);
assertEquals("value-1", map.get("key-1"));
}
}
@@ -204,7 +203,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
assertEquals(1, map.size());
assertEquals("value-1", map.get("key-1"));
}
}
@Test
@@ -298,7 +296,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
assertEquals("value-1", map.get("key-1"));
assertEquals(1, map.size(), 0);
}
}
@@ -109,7 +109,6 @@ public class TwoMapOnDifferentServersTest {
break;
Thread.sleep(1);
}
}
}
@@ -84,7 +84,6 @@ public class UDPSocketReplicationTest {
map2.put(i * 2, "E");
System.out.println("" + map2);
}
}*/
}
@@ -81,7 +81,6 @@ public class ChannelReplicationTest {
.replicatedViaChannel(hubOnServer1.createChannel(channel2)).create();
favoriteComputerServer1.put("peter", "dell");
}
// server 2 with identifier = 2
@@ -176,7 +175,6 @@ public class ChannelReplicationTest {
.replicatedViaChannel(hubOnServer1.createChannel(channel2)).create();
favoriteComputerServer1.put("peter", "dell");
}
// server 2 with identifier = 2
@@ -231,7 +229,6 @@ public class ChannelReplicationTest {
favoriteComputerServer3 = smallStringToStringMapBuilder.instance()
.replicatedViaChannel(hubOnServer3.createChannel(channel2)).create();
}
// allow time for the recompilation to resolve
@@ -256,7 +253,6 @@ public class ChannelReplicationTest {
favoriteColourServer1.close();
favoriteColourServer2.close();
}
@Test
@@ -294,7 +290,6 @@ public class ChannelReplicationTest {
.replicatedViaChannel(hubOnServer1.createChannel(channel2)).create();
favoriteComputerServer1.put("peter", "dell");
}
// server 2 with identifier = 2
@@ -49,7 +49,6 @@ public class ChronicleMapTest extends JSR166TestCase {
static ChronicleMap<Integer, CharSequence> newShmIntString(int size) throws IOException {
return ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.entries(size).create();
}
static ChronicleMap<ArrayList, CharSequence> newShmListBoolean(int size) throws IOException {
@@ -99,7 +98,6 @@ public class ChronicleMapTest extends JSR166TestCase {
map.clear();
assertEquals(0, map.size());
}
}
@@ -112,7 +110,6 @@ public class ChronicleMapTest extends JSR166TestCase {
assertTrue(map.containsValue("A"));
assertFalse(map.containsValue("Z"));
}
}
/**
@@ -213,7 +210,6 @@ public class ChronicleMapTest extends JSR166TestCase {
assertTrue(s.contains("C"));
assertTrue(s.contains("D"));
assertTrue(s.contains("E"));
}
}
@@ -230,7 +226,6 @@ public class ChronicleMapTest extends JSR166TestCase {
assertTrue(map.containsKey(((java.util.Map.Entry) (ar[i])).getKey()));
assertTrue(map.containsValue(((java.util.Map.Entry) (ar[i])).getValue()));
}
}
}
@@ -269,7 +264,6 @@ public class ChronicleMapTest extends JSR166TestCase {
(e.getKey().equals(five) && e.getValue().equals("E"))
);
}
}
}
@@ -288,7 +282,6 @@ public class ChronicleMapTest extends JSR166TestCase {
assertTrue(empty.containsKey(three));
assertTrue(empty.containsKey(four));
assertTrue(empty.containsKey(five));
}
}
}
@@ -301,7 +294,6 @@ public class ChronicleMapTest extends JSR166TestCase {
try (ChronicleMap map = map5()) {
map.putIfAbsent(six, "Z");
assertTrue(map.containsKey(six));
}
}
@@ -323,7 +315,6 @@ public class ChronicleMapTest extends JSR166TestCase {
try (ChronicleMap map = map5()) {
assertNull(map.replace(six, "Z"));
assertFalse(map.containsKey(six));
}
}
@@ -349,7 +340,6 @@ public class ChronicleMapTest extends JSR166TestCase {
assertEquals("A", map.get(one));
assertFalse(map.replace(one, "Z", "Z"));
assertEquals("A", map.get(one));
}
}
@@ -363,7 +353,6 @@ public class ChronicleMapTest extends JSR166TestCase {
assertEquals("A", map.get(one));
assertTrue(map.replace(one, "A", "Z"));
assertEquals("Z", map.get(one));
}
}
@@ -377,7 +366,6 @@ public class ChronicleMapTest extends JSR166TestCase {
map.remove(five);
assertEquals(4, map.size());
assertFalse(map.containsKey(five));
}
}
@@ -449,7 +437,6 @@ public class ChronicleMapTest extends JSR166TestCase {
for (int i = 1; i <= 5; ++i) {
assertTrue(s.contains(String.valueOf(i)));
}
}
}
@@ -464,7 +451,6 @@ public class ChronicleMapTest extends JSR166TestCase {
shouldThrow();
} catch (NullPointerException success) {
}
}
/**
@@ -121,7 +121,6 @@ public class MapCheck {
static Map newMap() {
try {
return ChronicleMapBuilder.of(Object.class, Object.class).create();
} catch (Exception e) {
throw new RuntimeException("Can't instantiate CHM : " + e);
}
@@ -736,7 +735,6 @@ public class MapCheck {
else
((Stats) st).addTime(elapsed, numOps);
}
}
static final class Stats {
@@ -239,7 +239,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
.statelessClient(new InetSocketAddress("localhost", port)).create();
return new SingleCloseMap(statelessMap, statelessMap, serverMap);
}
static ChronicleMap<CharSequence, CharSequence> newStrStrMap(int port) throws
@@ -303,7 +302,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
assertFalse(map.isEmpty());
assertEquals(5, map.size());
return map;
}
static int s_port = 11050;
@@ -348,7 +346,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
map.clear();
assertEquals(0, map.size());
}
}
@@ -361,7 +358,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
assertTrue(map.containsValue("A"));
assertFalse(map.containsValue("Z"));
}
}
/**
@@ -462,7 +458,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
assertTrue(s.contains("C"));
assertTrue(s.contains("D"));
assertTrue(s.contains("E"));
}
}
@@ -479,7 +474,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
assertTrue(map.containsKey(((java.util.Map.Entry) (ar[i])).getKey()));
assertTrue(map.containsValue(((java.util.Map.Entry) (ar[i])).getValue()));
}
}
}
@@ -518,7 +512,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
(e.getKey().equals(five) && e.getValue().equals("E"))
);
}
}
}
@@ -537,7 +530,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
assertTrue(empty.containsKey(three));
assertTrue(empty.containsKey(four));
assertTrue(empty.containsKey(five));
}
}
}
@@ -550,7 +542,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
try (ChronicleMap map = map5(s_port++)) {
map.putIfAbsent(six, "Z");
assertTrue(map.containsKey(six));
}
}
@@ -572,7 +563,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
try (ChronicleMap map = map5(s_port++)) {
assertNull(map.replace(six, "Z"));
assertFalse(map.containsKey(six));
}
}
@@ -597,7 +587,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
assertEquals("A", map.get(one));
assertFalse(map.replace(one, "Z", "Z"));
assertEquals("A", map.get(one));
}
}
@@ -610,7 +599,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
assertEquals("A", map.get(one));
assertTrue(map.replace(one, "A", "Z"));
assertEquals("Z", map.get(one));
}
}
@@ -623,7 +611,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
map.remove(five);
assertEquals(4, map.size());
assertFalse(map.containsKey(five));
}
}
@@ -695,7 +682,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
for (int i = 1; i <= 5; ++i) {
assertTrue(s.contains(String.valueOf(i)));
}
}
}
@@ -710,7 +696,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
shouldThrow();
} catch (NullPointerException success) {
}
}
/**