예제 #1
0
 @Test
 public void testRemoveIeComments() {
   String oldText =
       "&lt;!--[if !supportLineBreakNewLine]--&gt;fdgsdfgsfdg  <br> &lt;!--[endif]--><!--[if !supportLineBreakNewLine]-->nnnnnnnnnnnnnnnnnn<!--[endif]-->";
   String newText = HtmlUtil.removeIeComments(oldText);
   Assert.assertEquals("fdgsdfgsfdg  <br> nnnnnnnnnnnnnnnnnn", newText);
 }
예제 #2
0
 @Test
 public void testRemoveIeComments_withEmpty() {
   String newText = HtmlUtil.removeIeComments("");
   Assert.assertEquals("", newText);
 }
예제 #3
0
 @Test
 public void testRemoveIeComments_withNull() {
   String newText = HtmlUtil.removeIeComments(null);
   Assert.assertNull(newText);
 }