Skip to content

Commit 1d12be4

Browse files
AbstractObjectBoxTest: enable read+write transaction logging.
1 parent 4928195 commit 1d12be4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,15 @@ protected BoxStore createBoxStore(boolean withIndex) {
8282

8383
protected BoxStoreBuilder createBoxStoreBuilderWithTwoEntities(boolean withIndex) {
8484
BoxStoreBuilder builder = new BoxStoreBuilder(createTestModelWithTwoEntities(withIndex)).directory(boxStoreDir);
85+
builder.debugFlags(DebugFlags.LOG_TRANSACTIONS_READ | DebugFlags.LOG_TRANSACTIONS_WRITE);
8586
builder.entity(new TestEntity_());
8687
builder.entity(new TestEntityMinimal_());
8788
return builder;
8889
}
8990

9091
protected BoxStoreBuilder createBoxStoreBuilder(boolean withIndex) {
9192
BoxStoreBuilder builder = new BoxStoreBuilder(createTestModel(withIndex)).directory(boxStoreDir);
93+
builder.debugFlags(DebugFlags.LOG_TRANSACTIONS_READ | DebugFlags.LOG_TRANSACTIONS_WRITE);
9294
builder.entity(new TestEntity_());
9395
return builder;
9496
}

0 commit comments

Comments
 (0)