Remove double and triple blank lines

This commit is contained in:
Peter Lawrey
2014-11-30 22:43:32 +02:00
parent 6dc1792f19
commit 6d4b143903
83 changed files with 9 additions and 621 deletions
@@ -37,7 +37,6 @@ import static org.junit.Assert.*;
*/
public class TimeBasedReplicationTest extends JSR166TestCase {
public static final byte IDENTIFIER = 1;
private static File getPersistenceFile() {
@@ -59,7 +58,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
StatelessClientTest.checkThreadsShutdown(threads);
}
@Test
public void testIgnoreALatePut() throws IOException {
@@ -80,7 +78,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
// now test assume that we receive a late update to the map, the following update should be ignored
late(timeProvider);
map.put("key-1", "value-2");
// we'll now flip the time back to the current in order to do the read the result
@@ -109,7 +106,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
// now test assume that we receive a late update to the map, the following update should be ignored
late(timeProvider);
final Object o = map.putIfAbsent("key-1", "value-2");
assertEquals(o, null);
@@ -132,18 +128,15 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
current(timeProvider);
// we do a put at the current time
map.put("key-1", "value-1");
assertEquals(1, map.size());
assertEquals("value-1", map.get("key-1"));
// now test assume that we receive a late update to the map,
// the following update should be ignored
late(timeProvider);
final Object o = map.replace("key-1", "value-2");
assertEquals(o, null);
@@ -175,10 +168,8 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
// now test assume that we receive a late update to the map, the following update should be ignored
late(timeProvider);
assertEquals(null, map.replace("key-1", "value-2"));
// we'll now flip the time back to the current in order to do the read the result
current(timeProvider);
assertEquals(1, map.size());
@@ -206,7 +197,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
// now test assume that we receive a late update to the map, the following update should be ignored
late(timeProvider);
assertEquals(false, map.remove("key-1", "value-1"));
// we'll now flip the time back to the current in order to do the read the result
@@ -247,7 +237,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
}
@Test
public void testIgnoreWithRemoteRemove() throws IOException {
@@ -281,11 +270,9 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
}
}
@Test
public void testIgnoreWithRemotePut() throws IOException {
final TimeProvider timeProvider = Mockito.mock(TimeProvider.class);
try (ReplicatedChronicleMap map = (ReplicatedChronicleMap) ChronicleMapBuilder.of
(CharSequence.class, CharSequence.class)
@@ -306,7 +293,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
final long late = System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(5);
assertEquals(null, map.put("key-1", "value-2", IDENTIFIER, late));
// we'll now flip the time back to the current in order to do the read the result
current(timeProvider);
@@ -316,7 +302,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
}
}
@Test
public void testRemoveFollowedByLatePut() throws IOException {
@@ -347,7 +332,6 @@ public class TimeBasedReplicationTest extends JSR166TestCase {
}
}
@Test
public void testPutRemovePut() throws IOException {