mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 finally to the stateless map to support a lazy connect
This commit is contained in:
@@ -57,7 +57,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
|
||||
this.d = statelessMap;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public File file() {
|
||||
return null;
|
||||
@@ -182,7 +181,6 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
|
||||
|
||||
}
|
||||
|
||||
|
||||
static ChronicleMap<CharSequence, CharSequence> newStrStrMap(int port) throws
|
||||
IOException {
|
||||
|
||||
@@ -539,6 +537,33 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* size returns the correct values
|
||||
*/
|
||||
@Test
|
||||
public void testSize2() throws IOException {
|
||||
try (ChronicleMap map = map5(8076)) {
|
||||
|
||||
try (ChronicleMap empty = newShmIntString(8078)) {
|
||||
assertEquals(0, empty.size()) ;
|
||||
assertEquals(5, map.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* size returns the correct values
|
||||
*/
|
||||
@Test
|
||||
public void testSize3() throws IOException {
|
||||
try (ChronicleMap map = map5(8076)) {
|
||||
|
||||
try (ChronicleMap empty = newShmIntString(8078)) {
|
||||
assertEquals(0, empty.size()) ;
|
||||
assertEquals(5, map.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* toString contains toString of elements
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user