Start setting lastModifiedTime and fixed bootstrapping; clarified some test @Ignores

This commit is contained in:
leventov
2015-06-16 16:22:32 +03:00
parent 83205b9456
commit 9746084998
12 changed files with 5032 additions and 4867 deletions
@@ -1162,7 +1162,6 @@ public class CHMUseCasesTest {
}
// @Ignore("HCOLL-268 JSON serialisation issue")
@Test
public void testByteBufferByteBufferDefaultKeyValueMarshaller() throws ExecutionException,
InterruptedException, IOException {
@@ -1687,7 +1687,7 @@ public class ChronicleMapTest {
@Test
@Ignore
@Ignore("TODO investigate, debug")
public void testByteArrayKeySizeBySample() throws IOException {
TcpTransportAndNetworkConfig serverConfig = TcpTransportAndNetworkConfig.of(8877);
@@ -32,7 +32,7 @@ import static org.junit.Assert.assertEquals;
public class DefaultValueTest {
@Test
@Ignore
@Ignore("Cannot reuse List instance in acquireUsing()")
public void test() throws IllegalAccessException, InstantiationException, IOException {
File file = Builder.getPersistenceFile();
try {
@@ -45,7 +45,7 @@ import static org.junit.Assert.assertTrue;
/**
* @author Rob Austin.
*/
@Ignore
@Ignore("Stateless clients in this form are deprecated and left not working")
public class StatelessClientTest {
private static final Logger LOG = LoggerFactory.getLogger(StatelessClientTest.class);
@@ -43,7 +43,6 @@ import static org.junit.Assert.assertEquals;
*
* @author Rob Austin.
*/
@Ignore
public class TCPSocketReplicationBootStrapTest {
private ReplicatedChronicleMap<Integer, ?, ?, CharSequence, ?, ?, ?> map1;
@@ -186,11 +185,14 @@ public class TCPSocketReplicationBootStrapTest {
* @throws InterruptedException
*/
private void waitTillEqual(final int timeOutMs) throws InterruptedException {
long startTime = System.currentTimeMillis();
int t = 0;
for (; t < timeOutMs; t++) {
if (map1.equals(map2))
break;
Thread.sleep(1);
if (System.currentTimeMillis() - startTime > timeOutMs)
break;
}
}
@@ -36,7 +36,6 @@ import static org.junit.Assert.assertEquals;
/**
* @author Rob Austin.
*/
@Ignore
public class ChannelReplicationTest {
private ChronicleMap<CharSequence, CharSequence> favoriteComputerServer1;
@@ -68,7 +68,7 @@ public class DoubleArrayTest {
}
@Test
@Ignore
@Ignore("TODO What is HACK???")
public void addToAMap2() {
DoubleArray.HACK = false;
DoubleArray a = new DoubleArray(10);