File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
tests/objectbox-java-test/src/test/java/io/objectbox Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2017 ObjectBox Ltd. All rights reserved.
2
+ * Copyright 2017-2018 ObjectBox Ltd. All rights reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
38
38
import static org .junit .Assert .assertTrue ;
39
39
40
40
public abstract class AbstractObjectBoxTest {
41
+ private static boolean printedVersionsOnce ;
42
+
41
43
protected File boxStoreDir ;
42
44
protected BoxStore store ;
43
45
protected Random random = new Random ();
@@ -58,6 +60,14 @@ public void setUp() throws IOException {
58
60
File tempFile = File .createTempFile ("object-store-test" , "" );
59
61
tempFile .delete ();
60
62
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
+
61
71
store = createBoxStore ();
62
72
runExtensiveTests = System .getProperty ("extensive-tests" ) != null ;
63
73
}
You can’t perform that action at this time.
0 commit comments