示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldRollbackParentIfFailureCalled()
        public virtual void ShouldRollbackParentIfFailureCalled()
        {
            // When
            _placeboTx.failure();
            _placeboTx.close();

            // Then
            verify(_kernelTransaction, times(2)).failure();                   // We accept two calls to failure, since KernelTX#failure is idempotent
        }
示例#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();
            }
        }
示例#3
0
 public virtual void Failure()
 {
     try
     {
         if (_tx != null)
         {
             _tx.failure();
             _tx.close();
         }
     }
     finally
     {
         _tx = null;
     }
 }