Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Transaction
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9768
Modified Files:
CommonTypes.cs
Log Message:
NHibernate unit tests
SPRNET-714 - SessionFactory not bound to thread local storage if DbProvider for HibernateTransactionManager is null
SPRNET-715 - SpringSessionSynchronization did not close hibernate session with a nested transaction with TransactionPropagation.NotSupported
Index: CommonTypes.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Transaction/CommonTypes.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** CommonTypes.cs 8 Aug 2007 20:59:55 -0000 1.10
--- CommonTypes.cs 29 Aug 2007 03:42:32 -0000 1.11
***************
*** 13,17 ****
public MyMockTxnObject() : this( "MyMockTxnObject" ) {}
public MyMockTxnObject( string name ) : base( name ) {}
! public void SetExpectedRollbackOnlyCalls( int calls )
{
_isRollbackOnlyCalls.Expected = calls;
--- 13,20 ----
public MyMockTxnObject() : this( "MyMockTxnObject" ) {}
public MyMockTxnObject( string name ) : base( name ) {}
!
!
!
! public void SetExpectedRollbackOnlyCalls( int calls )
{
_isRollbackOnlyCalls.Expected = calls;
***************
*** 22,30 ****
}
#region ISmartTransactionObject Members
! public bool IsRollbackOnly()
! {
! _isRollbackOnlyCalls.Inc();
! return _isRollbackOnly;
! }
#endregion
--- 25,37 ----
}
#region ISmartTransactionObject Members
!
! public bool RollbackOnly
! {
! get
! {
! _isRollbackOnlyCalls.Inc();
! return _isRollbackOnly;
! }
! }
#endregion
***************
*** 45,53 ****
#region ISmartTransactionObject Members
! public bool IsRollbackOnly()
! {
! // TODO: Add MyMockTxnObjectSavepointMgr.IsRollbackOnly implementation
! return false;
! }
#endregion
--- 52,62 ----
#region ISmartTransactionObject Members
! public bool RollbackOnly
! {
! get
! { // TODO: Add MyMockTxnObjectSavepointMgr.IsRollbackOnly implementation
! return false;
! }
! }
#endregion
|