//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();
        }
Beispiel #2
0
//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();
            }
        }
Beispiel #3
0
 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;
     }
 }
Beispiel #5
0
 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;
     }
 }
Beispiel #7
0
 public virtual void FinishTx(bool success)
 {
     if (_tx != null)
     {
         if (success)
         {
             _tx.success();
         }
         _tx.close();
         _tx = null;
     }
 }
Beispiel #8
0
 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();
        }
Beispiel #10
0
 public virtual void CloseTransaction()
 {
     _transaction.close();
 }