CacheTagTest.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:ehcachetag 作者:
/**
 * 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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号