HCOLL-184 removed this as it was failing on teamcity - " if (!absolutePath.endsWith("Chronicle-Map"))

return null;
This commit is contained in:
Rob Austin
2014-12-17 19:53:13 +00:00
parent de22705272
commit a6926bfe4b
3 changed files with 35 additions and 3 deletions
@@ -32,7 +32,28 @@ public class BuildVersionTest {
@Test
public void test() throws IOException, InterruptedException {
// checks that we always get a version
Assert.assertNotNull(BuildVersion.version());
Assert.assertNotNull(BuildVersion.readVersion());
}
/**
* check that the map records the version
*
* @throws IOException
* @throws InterruptedException
*/
@Test
public void testVersion() throws IOException, InterruptedException {
try (ChronicleMap<Integer, Double> expected = ChronicleMapBuilder.of(Integer.class, Double
.class)
.create()) {
expected.put(1, 1.0);
String version = ((VanillaChronicleMap) expected).version();
Assert.assertNotNull(BuildVersion.readVersion(), version);
}
}
}