+ add NPE test
This commit is contained in:
Costin Leau 2011-04-21 08:07:12 +00:00
parent e1d19d6c24
commit 5206f5bc9a
1 changed files with 15 additions and 0 deletions

View File

@ -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);
}
}