removing tests, etc. related to CustomSpring132HibernateTxScopeTransactionManager as no longer necessary now that changes are in HibernateTxScopeTransactionManager directly
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns='http://www.springframework.net' xmlns:db="http://www.springframework.net/database" xmlns:tx="http://www.springframework.net/tx" xmlns:aop="http://www.springframework.net/aop">
|
||||
|
||||
|
||||
<object id="Spring.Transaction.IPlatformTransactionManager" type="Spring.SessionFactoryImplError.Tests.CustomSpring132HibernateTxScopeTransactionManager, Spring.SessionFactoryImplError.Tests">
|
||||
<property name="DbProvider" ref="ActiveDbProvider"/>
|
||||
<property name="SessionFactory" ref="Spring.Data.NHibernate.LocalSessionFactoryObject"/>
|
||||
</object>
|
||||
|
||||
|
||||
</objects>
|
||||
@@ -56,8 +56,6 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Container.cs" />
|
||||
<Compile Include="TestUsingCustomHibernateTxScopeTransactionManager.cs" />
|
||||
<Compile Include="CustomSpring132HibernateTxScopeTransactionManager.cs" />
|
||||
<Compile Include="IContainer.cs" />
|
||||
<Compile Include="IService1.cs" />
|
||||
<Compile Include="IService2.cs" />
|
||||
@@ -97,8 +95,6 @@
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="CreateTable.sql" />
|
||||
<EmbeddedResource Include="Spring.CustomHibernateTxScopeTransactionManager.xml" />
|
||||
<EmbeddedResource Include="Spring.HibernateTxScopeTransactionManager.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
using NUnit.Framework;
|
||||
using Spring.Data.NHibernate.Generic;
|
||||
using Spring.Testing.NUnit;
|
||||
|
||||
namespace Spring.SessionFactoryImplError.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestUsingCustomHibernateTxScopeTransactionManager : AbstractTransactionalSpringContextTests
|
||||
{
|
||||
#region DI
|
||||
|
||||
public HibernateTemplate HibernateTemplate { get; set; }
|
||||
public IService1 Service1 { get; set; }
|
||||
public IService2 Service2 { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
protected override string[] ConfigLocations
|
||||
{
|
||||
get
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
"config://spring/objects",
|
||||
"assembly://Spring.SessionFactoryImplError.Tests/Spring.SessionFactoryImplError.Tests/Spring.Configuration.xml",
|
||||
"assembly://Spring.SessionFactoryImplError.Tests/Spring.SessionFactoryImplError.Tests/Spring.NHibernate.xml",
|
||||
"assembly://Spring.SessionFactoryImplError.Tests/Spring.SessionFactoryImplError.Tests/Spring.CustomHibernateTxScopeTransactionManager.xml"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
[Test(Description = "This is failing test case in my unit test with original NH TX Scope Manager, but not Custom TX Scope Manager, Not Supported -> Not Supported")]
|
||||
public void TestSuspendTransactionOnNotSupported()
|
||||
{
|
||||
Service1.ServiceMethodWithNotSupported1();
|
||||
}
|
||||
|
||||
[Test(Description = "This is also failing with NH TX Scope manager, but nto with Custom TX Scope Manager, Not Supported -> Requires New")]
|
||||
public void TestSuspendTransactionOnNotSupportedWithNestedRequiresNew()
|
||||
{
|
||||
Service2.ServiceMethodWithNotSupported();
|
||||
}
|
||||
|
||||
[Test(Description = "This is failing test case in my unit test with Custom TX Scope Manager (this is the original bug reported), Not Supported -> Not Supported -> Required")]
|
||||
public void TestSuspendTransactionOnNotSupportedWithNestedRequired()
|
||||
{
|
||||
Service1.ServiceMethodWithNotSupported3();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user