/**
* Key is null, check that we return EVAL_BODY_INCLUDE.
*
* @throws JspException
*/
@Test
public void testDoStartTag_null_key() throws JspException {
// given
testSubject.setKey(null);
testSubject.setCache("mycache");
// when
int actualResult = testSubject.doStartTag();
// then
Assert.assertEquals(BodyTagSupport.EVAL_BODY_INCLUDE, actualResult);
// verify cleanup
Assert.assertNull(testSubject.getCache());
verifyCleanup();
}
CacheTagTest.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:ehcachetag
作者:
评论列表
文章目录