@Test public void testNormalTransaction() throws Throwable { interceptor.invoke(invocation); verify(graphDb).beginTx(); verify(tx).success(); }
@Override public Object invoke(MethodInvocation invocation) throws Throwable { Object result = null; try (Transaction tx = graphDb.beginTx()) { result = invocation.proceed(); tx.success(); } return result; }
TransactionalInterceptor implements MethodInterceptor { @Override public Object invoke(MethodInvocation invocation) throws Throwable { Object result = null; try (Transaction tx = graphDb.beginTx()) { result = invocation.proceed(); tx.success(); } return result; } }
TransactionalInterceptor implements MethodInterceptor { @Override public Object invoke(MethodInvocation invocation) throws Throwable { Object result = null; try (Transaction tx = graphDb.beginTx()) { result = invocation.proceed(); tx.success(); } return result; }  }
TransactionalInterceptor implements MethodInterceptor { @Override public Object invoke(MethodInvocation invocation) throws Throwable { Object result = null; try (Transaction tx = graphDb.beginTx()) { result = invocation.proceed(); tx.success(); } return result; }  @Override Object invoke(MethodInvocation invocation); }
TransactionalInterceptor implements MethodInterceptor { @Override public Object invoke(MethodInvocation invocation) throws Throwable { Object result = null; try (Transaction tx = graphDb.beginTx()) { result = invocation.proceed(); tx.success(); } return result; }  @Override Object invoke(MethodInvocation invocation);  }