@Test(expected = IllegalArgumentException.class) public void hasAncestorOfTypeWhereAncestorTagIsNotATagType() throws Exception { assertFalse(TagUtils.hasAncestorOfType(new TagSupport(), String.class)); }
@Test(expected = IllegalArgumentException.class) public void hasAncestorOfTypeWithNullAncestorTagClassArgument() throws Exception { assertFalse(TagUtils.hasAncestorOfType(new TagSupport(), null)); }