SPRNET-904 - RollbackRuleAttribute throws AopConfiguration exception instead of ArgumentException

This commit is contained in:
markpollack
2009-07-28 20:15:08 +00:00
parent ca819eed8a
commit 7b8ea2a7ea
3 changed files with 210 additions and 203 deletions

View File

@@ -43,7 +43,7 @@ namespace Spring.Transaction.Interceptor
Assert.IsTrue(rr.GetDepth(typeof(TransactionSystemException)) > 0);
}
[Test]
[ExpectedException(typeof(AopConfigException))]
[ExpectedException(typeof(ArgumentException))]
public void ConstructorArgMustBeAExceptionClass()
{
new NoRollbackRuleAttribute( typeof( StringBuilder ) );

View File

@@ -76,7 +76,7 @@ namespace Spring.Transaction.Interceptor
}
[Test]
[ExpectedException(typeof (AopConfigException))]
[ExpectedException(typeof (ArgumentException))]
public void ConstructorArgMustBeAExceptionClass()
{
new RollbackRuleAttribute(typeof (StringBuilder));