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 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.
3838import static org .junit .Assert .assertTrue ;
3939
4040public 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 }
You can’t perform that action at this time.
0 commit comments