X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fmigration%2Fv12%2FMigrateINVPhysicalInventoryTest.java;h=e946a10c84cc5575eb9d6fb6502b54ad9a7b00f9;hb=6406d19ed660371107aec3317856a492f6e22d0f;hp=aae92d460c5a9e589f0f9e05ef19205bbfff7438;hpb=023e0b5018247f02e05dbed3f91c495161fde814;p=aai%2Fgraphadmin.git diff --git a/src/test/java/org/onap/aai/migration/v12/MigrateINVPhysicalInventoryTest.java b/src/test/java/org/onap/aai/migration/v12/MigrateINVPhysicalInventoryTest.java index aae92d4..e946a10 100644 --- a/src/test/java/org/onap/aai/migration/v12/MigrateINVPhysicalInventoryTest.java +++ b/src/test/java/org/onap/aai/migration/v12/MigrateINVPhysicalInventoryTest.java @@ -86,7 +86,7 @@ public class MigrateINVPhysicalInventoryTest extends AAISetup { TransactionalGraphEngine.Admin adminSpy = spy(dbEngine.asAdmin()); GraphTraversalSource traversal = g; - GraphTraversalSource readOnly = tx.traversal(GraphTraversalSource.build().with(ReadOnlyStrategy.instance())); + GraphTraversalSource readOnly = graph.traversal().withStrategies(ReadOnlyStrategy.instance()); when (spy.tx()).thenReturn(tx); when(spy.asAdmin()).thenReturn(adminSpy); when(adminSpy.getTraversalSource()).thenReturn(traversal);