//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRollbackParentByDefault() public virtual void ShouldRollbackParentByDefault() { // When _placeboTx.close(); // Then verify(_kernelTransaction).failure(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void tearDown() public virtual void TearDown() { if (_bridge.hasTransaction()) { _tx.failure(); _tx.close(); } }
private void NewTransaction() { if (_tx != null) { _tx.success(); _tx.close(); } _tx = _graph.beginTx(); }
public virtual void Success() { try { if (_tx != null) { _tx.success(); _tx.close(); } } finally { _tx = null; } }
public override Void DoWork(HighlyAvailableGraphDatabase state) { if (_successful) { _tx.success(); } _tx.close(); return(null); }
public override void NotifyStatusChanged(object instance, LifecycleStatus from, LifecycleStatus to) { if ((LifecycleStatus.STOPPED == to) && (instance is RecordStorageEngine)) { Transaction.success(); Transaction.close(); TransactionClosedConflict = true; } }
public virtual void FinishTx(bool success) { if (_tx != null) { if (success) { _tx.success(); } _tx.close(); _tx = null; } }
private void CloseTx() { _tx.success(); _tx.close(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void tearDown() public virtual void TearDown() { _tx.close(); }
public virtual void CloseTransaction() { _transaction.close(); }