mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 20:59:07 +00:00
SPR-8238
+ add NPE test git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4231 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+15
@@ -148,6 +148,11 @@ public abstract class AbstractAnnotationTest {
|
||||
assertTrue(cache.containsKey(expectedKey));
|
||||
}
|
||||
|
||||
public void testNullArg(CacheableService service) {
|
||||
Object r1 = service.cache(null);
|
||||
assertSame(r1, service.cache(null));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCacheable() throws Exception {
|
||||
testCacheable(cs);
|
||||
@@ -226,4 +231,14 @@ public abstract class AbstractAnnotationTest {
|
||||
public void testClassRootVars() throws Exception {
|
||||
testRootVars(ccs);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNullArg() throws Exception {
|
||||
testNullArg(cs);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testClassNullArg() throws Exception {
|
||||
testNullArg(ccs);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user