mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Improve javadoc in RollbackRuleAttribute regarding nested classes
Closes gh-24682 Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
This commit is contained in:
co-authored by
Sam Brannen
parent
d85a6c0bea
commit
70581d1ea2
+15
@@ -88,4 +88,19 @@ public class RollbackRuleTests {
|
||||
new RollbackRuleAttribute((String) null));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void foundEnclosedExceptionWithEnclosingException() {
|
||||
RollbackRuleAttribute rr = new RollbackRuleAttribute(EnclosingException.class);
|
||||
assertThat(rr.getDepth(new EnclosingException.EnclosedException())).isEqualTo(0);
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
static class EnclosingException extends RuntimeException {
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
static class EnclosedException extends RuntimeException {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user