protected Transaction beginTransaction() throws TransactionFailureException { Kernel kernel = testSupport.kernelToTest(); return kernel.beginTransaction( Transaction.Type.implicit, LoginContext.AUTH_DISABLED ); }
@Before public void setupGraph() throws IOException, KernelException { if ( testSupport == null ) { folder.create(); testSupport = newTestSupport(); testSupport.setup( folder.getRoot(), this::createTestGraph ); } Kernel kernel = testSupport.kernelToTest(); tx = kernel.beginTransaction( Transaction.Type.implicit, LoginContext.AUTH_DISABLED ); token = tx.token(); read = tx.dataRead(); indexRead = tx.indexRead(); schemaRead = tx.schemaRead(); cursors = new ManagedTestCursors( tx.cursors() ); }