Skip to content

Commit ab04f75

Browse files
committed
first test prints ObjectBox versions
1 parent a7c59c3 commit ab04f75

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/AbstractObjectBoxTest.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 ObjectBox Ltd. All rights reserved.
2+
* Copyright 2017-2018 ObjectBox Ltd. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,6 +38,8 @@
3838
import static org.junit.Assert.assertTrue;
3939

4040
public abstract class AbstractObjectBoxTest {
41+
private static boolean printedVersionsOnce;
42+
4143
protected File boxStoreDir;
4244
protected BoxStore store;
4345
protected Random random = new Random();
@@ -58,6 +60,14 @@ public void setUp() throws IOException {
5860
File tempFile = File.createTempFile("object-store-test", "");
5961
tempFile.delete();
6062
boxStoreDir = tempFile;
63+
64+
if (!printedVersionsOnce) {
65+
System.out.println("ObjectBox Java version: " + BoxStore.getVersion());
66+
System.out.println("ObjectBox Core version: " + BoxStore.getVersionNative());
67+
System.out.println("First DB dir: " + boxStoreDir);
68+
printedVersionsOnce = true;
69+
}
70+
6171
store = createBoxStore();
6272
runExtensiveTests = System.getProperty("extensive-tests") != null;
6373
}

0 commit comments

Comments
 (0)