SPRNET-904 - RollbackRuleAttribute throws AopConfiguration exception instead of ArgumentException
This commit is contained in:
@@ -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 ) );
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace Spring.Transaction.Interceptor
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException(typeof (AopConfigException))]
|
||||
[ExpectedException(typeof (ArgumentException))]
|
||||
public void ConstructorArgMustBeAExceptionClass()
|
||||
{
|
||||
new RollbackRuleAttribute(typeof (StringBuilder));
|
||||
|
||||
Reference in New Issue
Block a user