Remove test prefix from test methods

We previously used 'test' to prefix tests but have decided to stop this.
This change removes the prefix from all test code.

Change-Id: I229a36751adc6a87fbae8d6f373671e141529496
This commit is contained in:
Patrick Hiesel
2016-12-06 09:27:46 +01:00
parent b7944aedac
commit a02a5c01e9
80 changed files with 543 additions and 542 deletions

View File

@@ -15,7 +15,8 @@
package com.google.gwtexpui.safehtml.client;
import static com.google.common.truth.Truth.assertThat;
import static com.google.gwtexpui.safehtml.client.LinkFindReplace.hasValidScheme;
import com.google.gwtexpui.safehtml.client.LinkFindReplace;
import org.junit.Rule;
import org.junit.Test;
@@ -26,7 +27,7 @@ public class LinkFindReplaceTest {
public ExpectedException exception = ExpectedException.none();
@Test
public void testNoEscaping() {
public void noEscaping() {
String find = "find";
String link = "link";
LinkFindReplace a = new LinkFindReplace(find, link);
@@ -36,7 +37,7 @@ public class LinkFindReplaceTest {
}
@Test
public void testBackreference() {
public void backreference() {
LinkFindReplace l = new LinkFindReplace(
"(bug|issue)\\s*([0-9]+)", "/bug?id=$2");
assertThat(l.replace("issue 123"))
@@ -44,39 +45,39 @@ public class LinkFindReplaceTest {
}
@Test
public void testHasValidScheme() {
assertThat(hasValidScheme("/absolute/path")).isTrue();
assertThat(hasValidScheme("relative/path")).isTrue();
assertThat(hasValidScheme("http://url/")).isTrue();
assertThat(hasValidScheme("HTTP://url/")).isTrue();
assertThat(hasValidScheme("https://url/")).isTrue();
assertThat(hasValidScheme("mailto://url/")).isTrue();
assertThat(hasValidScheme("ftp://url/")).isFalse();
assertThat(hasValidScheme("data:evil")).isFalse();
assertThat(hasValidScheme("javascript:alert(1)")).isFalse();
public void hasValidScheme() {
assertThat(LinkFindReplace.hasValidScheme("/absolute/path")).isTrue();
assertThat(LinkFindReplace.hasValidScheme("relative/path")).isTrue();
assertThat(LinkFindReplace.hasValidScheme("http://url/")).isTrue();
assertThat(LinkFindReplace.hasValidScheme("HTTP://url/")).isTrue();
assertThat(LinkFindReplace.hasValidScheme("https://url/")).isTrue();
assertThat(LinkFindReplace.hasValidScheme("mailto://url/")).isTrue();
assertThat(LinkFindReplace.hasValidScheme("ftp://url/")).isFalse();
assertThat(LinkFindReplace.hasValidScheme("data:evil")).isFalse();
assertThat(LinkFindReplace.hasValidScheme("javascript:alert(1)")).isFalse();
}
@Test
public void testInvalidSchemeInReplace() {
public void invalidSchemeInReplace() {
exception.expect(IllegalArgumentException.class);
new LinkFindReplace("find", "javascript:alert(1)").replace("find");
}
@Test
public void testInvalidSchemeWithBackreference() {
public void invalidSchemeWithBackreference() {
exception.expect(IllegalArgumentException.class);
new LinkFindReplace(".*(script:[^;]*)", "java$1")
.replace("Look at this script: alert(1);");
}
@Test
public void testReplaceEscaping() {
public void replaceEscaping() {
assertThat(new LinkFindReplace("find", "a\"&'<>b").replace("find"))
.isEqualTo("<a href=\"a&quot;&amp;&#39;&lt;&gt;b\">find</a>");
}
@Test
public void testHtmlInFind() {
public void htmlInFind() {
String rawFind = "<b>&quot;bold&quot;</b>";
LinkFindReplace a = new LinkFindReplace(rawFind, "/bold");
assertThat(a.pattern().getSource()).isEqualTo(rawFind);

View File

@@ -20,7 +20,7 @@ import org.junit.Test;
public class RawFindReplaceTest {
@Test
public void testFindReplace() {
public void findReplace() {
final String find = "find";
final String replace = "replace";
final RawFindReplace a = new RawFindReplace(find, replace);

View File

@@ -25,7 +25,7 @@ public class SafeHtmlBuilderTest {
public ExpectedException exception = ExpectedException.none();
@Test
public void testEmpty() {
public void empty() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b.isEmpty()).isTrue();
assertThat(b.hasContent()).isFalse();
@@ -37,7 +37,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testToSafeHtml() {
public void toSafeHtml() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
b.append(1);
@@ -49,7 +49,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_boolean() {
public void append_boolean() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append(true));
assertThat(b).isSameAs(b.append(false));
@@ -57,7 +57,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_char() {
public void append_char() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append('a'));
assertThat(b).isSameAs(b.append('b'));
@@ -65,7 +65,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_int() {
public void append_int() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append(4));
assertThat(b).isSameAs(b.append(2));
@@ -74,7 +74,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_long() {
public void append_long() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append(4L));
assertThat(b).isSameAs(b.append(2L));
@@ -82,21 +82,21 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_float() {
public void append_float() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append(0.0f));
assertThat(b.asString()).isEqualTo("0.0");
}
@Test
public void testAppend_double() {
public void append_double() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append(0.0));
assertThat(b.asString()).isEqualTo("0.0");
}
@Test
public void testAppend_String() {
public void append_String() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append((String) null));
assertThat(b.asString()).isEmpty();
@@ -106,7 +106,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_StringBuilder() {
public void append_StringBuilder() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append((StringBuilder) null));
assertThat(b.asString()).isEmpty();
@@ -116,7 +116,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_StringBuffer() {
public void append_StringBuffer() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append((StringBuffer) null));
assertThat(b.asString()).isEmpty();
@@ -126,7 +126,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_Object() {
public void append_Object() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append((Object) null));
assertThat(b.asString()).isEmpty();
@@ -140,7 +140,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_CharSequence() {
public void append_CharSequence() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append((CharSequence) null));
assertThat(b.asString()).isEmpty();
@@ -150,7 +150,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testAppend_SafeHtml() {
public void append_SafeHtml() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.append((SafeHtml) null));
assertThat(b.asString()).isEmpty();
@@ -160,7 +160,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testHtmlSpecialCharacters() {
public void htmlSpecialCharacters() {
assertThat(escape("&")).isEqualTo("&amp;");
assertThat(escape("<")).isEqualTo("&lt;");
assertThat(escape(">")).isEqualTo("&gt;");
@@ -178,21 +178,21 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testEntityNbsp() {
public void entityNbsp() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.nbsp());
assertThat(b.asString()).isEqualTo("&nbsp;");
}
@Test
public void testTagBr() {
public void tagBr() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.br());
assertThat(b.asString()).isEqualTo("<br />");
}
@Test
public void testTagTableTrTd() {
public void tagTableTrTd() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.openElement("table"));
assertThat(b).isSameAs(b.openTr());
@@ -205,7 +205,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testTagDiv() {
public void tagDiv() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.openDiv());
assertThat(b).isSameAs(b.append("d<a>ta"));
@@ -214,7 +214,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testTagAnchor() {
public void tagAnchor() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.openAnchor());
@@ -234,7 +234,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testTagHeightWidth() {
public void tagHeightWidth() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.openElement("img"));
assertThat(b).isSameAs(b.setHeight(100));
@@ -244,7 +244,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testStyleName() {
public void styleName() {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
assertThat(b).isSameAs(b.openSpan());
assertThat(b).isSameAs(b.setStyleName("foo"));
@@ -255,7 +255,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testRejectJavaScript_AnchorHref() {
public void rejectJavaScript_AnchorHref() {
final String href = "javascript:window.close();";
exception.expect(RuntimeException.class);
exception.expectMessage("javascript unsafe in href: " + href);
@@ -263,7 +263,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testRejectJavaScript_ImgSrc() {
public void rejectJavaScript_ImgSrc() {
final String href = "javascript:window.close();";
exception.expect(RuntimeException.class);
exception.expectMessage("javascript unsafe in href: " + href);
@@ -271,7 +271,7 @@ public class SafeHtmlBuilderTest {
}
@Test
public void testRejectJavaScript_FormAction() {
public void rejectJavaScript_FormAction() {
final String href = "javascript:window.close();";
exception.expect(RuntimeException.class);
exception.expectMessage("javascript unsafe in href: " + href);

View File

@@ -20,7 +20,7 @@ import org.junit.Test;
public class SafeHtml_LinkifyTest {
@Test
public void testLinkify_SimpleHttp1() {
public void linkify_SimpleHttp1() {
final SafeHtml o = html("A http://go.here/ B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);
@@ -30,7 +30,7 @@ public class SafeHtml_LinkifyTest {
}
@Test
public void testLinkify_SimpleHttps2() {
public void linkify_SimpleHttps2() {
final SafeHtml o = html("A https://go.here/ B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);
@@ -40,7 +40,7 @@ public class SafeHtml_LinkifyTest {
}
@Test
public void testLinkify_Parens1() {
public void linkify_Parens1() {
final SafeHtml o = html("A (http://go.here/) B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);
@@ -50,7 +50,7 @@ public class SafeHtml_LinkifyTest {
}
@Test
public void testLinkify_Parens() {
public void linkify_Parens() {
final SafeHtml o = html("A http://go.here/#m() B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);
@@ -60,7 +60,7 @@ public class SafeHtml_LinkifyTest {
}
@Test
public void testLinkify_AngleBrackets1() {
public void linkify_AngleBrackets1() {
final SafeHtml o = html("A <http://go.here/> B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);
@@ -70,7 +70,7 @@ public class SafeHtml_LinkifyTest {
}
@Test
public void testLinkify_TrailingPlainLetter() {
public void linkify_TrailingPlainLetter() {
final SafeHtml o = html("A http://go.here/foo B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);
@@ -80,7 +80,7 @@ public class SafeHtml_LinkifyTest {
}
@Test
public void testLinkify_TrailingDot() {
public void linkify_TrailingDot() {
final SafeHtml o = html("A http://go.here/. B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);
@@ -90,7 +90,7 @@ public class SafeHtml_LinkifyTest {
}
@Test
public void testLinkify_TrailingComma() {
public void linkify_TrailingComma() {
final SafeHtml o = html("A http://go.here/, B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);
@@ -100,7 +100,7 @@ public class SafeHtml_LinkifyTest {
}
@Test
public void testLinkify_TrailingDotDot() {
public void linkify_TrailingDotDot() {
final SafeHtml o = html("A http://go.here/.. B");
final SafeHtml n = o.linkify();
assertThat(o).isNotSameAs(n);

View File

@@ -24,14 +24,14 @@ import java.util.List;
public class SafeHtml_ReplaceTest {
@Test
public void testReplaceEmpty() {
public void replaceEmpty() {
SafeHtml o = html("A\nissue42\nB");
assertThat(o.replaceAll(null)).isSameAs(o);
assertThat(o.replaceAll(Collections.<FindReplace> emptyList())).isSameAs(o);
}
@Test
public void testReplaceOneLink() {
public void replaceOneLink() {
SafeHtml o = html("A\nissue 42\nB");
SafeHtml n = o.replaceAll(repls(
new RawFindReplace("(issue\\s(\\d+))", "<a href=\"?$2\">$1</a>")));
@@ -41,7 +41,7 @@ public class SafeHtml_ReplaceTest {
}
@Test
public void testReplaceNoLeadingOrTrailingText() {
public void replaceNoLeadingOrTrailingText() {
SafeHtml o = html("issue 42");
SafeHtml n = o.replaceAll(repls(
new RawFindReplace("(issue\\s(\\d+))", "<a href=\"?$2\">$1</a>")));
@@ -51,7 +51,7 @@ public class SafeHtml_ReplaceTest {
}
@Test
public void testReplaceTwoLinks() {
public void replaceTwoLinks() {
SafeHtml o = html("A\nissue 42\nissue 9918\nB");
SafeHtml n = o.replaceAll(repls(
new RawFindReplace("(issue\\s(\\d+))", "<a href=\"?$2\">$1</a>")));
@@ -64,7 +64,7 @@ public class SafeHtml_ReplaceTest {
}
@Test
public void testReplaceInOrder() {
public void replaceInOrder() {
SafeHtml o = html("A\nissue 42\nReally GWTEXPUI-9918 is better\nB");
SafeHtml n = o.replaceAll(repls(
new RawFindReplace("(GWTEXPUI-(\\d+))",
@@ -80,7 +80,7 @@ public class SafeHtml_ReplaceTest {
}
@Test
public void testReplaceOverlappingAfterFirstChar() {
public void replaceOverlappingAfterFirstChar() {
SafeHtml o = html("abcd");
RawFindReplace ab = new RawFindReplace("ab", "AB");
RawFindReplace bc = new RawFindReplace("bc", "23");
@@ -92,7 +92,7 @@ public class SafeHtml_ReplaceTest {
}
@Test
public void testReplaceOverlappingAtFirstCharLongestMatch() {
public void replaceOverlappingAtFirstCharLongestMatch() {
SafeHtml o = html("abcd");
RawFindReplace ab = new RawFindReplace("ab", "AB");
RawFindReplace abc = new RawFindReplace("[^d][^d][^d]", "234");
@@ -102,7 +102,7 @@ public class SafeHtml_ReplaceTest {
}
@Test
public void testReplaceOverlappingAtFirstCharFirstMatch() {
public void replaceOverlappingAtFirstCharFirstMatch() {
SafeHtml o = html("abcd");
RawFindReplace ab1 = new RawFindReplace("ab", "AB");
RawFindReplace ab2 = new RawFindReplace("[^cd][^cd]", "12");
@@ -112,7 +112,7 @@ public class SafeHtml_ReplaceTest {
}
@Test
public void testFailedSanitization() {
public void failedSanitization() {
SafeHtml o = html("abcd");
LinkFindReplace evil = new LinkFindReplace("(b)", "javascript:alert('$1')");
LinkFindReplace ok = new LinkFindReplace("(b)", "/$1");

View File

@@ -27,7 +27,7 @@ public class SafeHtml_WikifyListTest {
}
@Test
public void testBulletList1() {
public void bulletList1() {
final SafeHtml o = html("A\n\n* line 1\n* 2nd line");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -40,7 +40,7 @@ public class SafeHtml_WikifyListTest {
}
@Test
public void testBulletList2() {
public void bulletList2() {
final SafeHtml o = html("A\n\n* line 1\n* 2nd line\n\nB");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -54,7 +54,7 @@ public class SafeHtml_WikifyListTest {
}
@Test
public void testBulletList3() {
public void bulletList3() {
final SafeHtml o = html("* line 1\n* 2nd line\n\nB");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -67,7 +67,7 @@ public class SafeHtml_WikifyListTest {
}
@Test
public void testBulletList4() {
public void bulletList4() {
final SafeHtml o = html("To see this bug, you have to:\n" //
+ "* Be on IMAP or EAS (not on POP)\n"//
+ "* Be very unlucky\n");
@@ -82,7 +82,7 @@ public class SafeHtml_WikifyListTest {
}
@Test
public void testBulletList5() {
public void bulletList5() {
final SafeHtml o = html("To see this bug,\n" //
+ "you have to:\n" //
+ "* Be on IMAP or EAS (not on POP)\n"//
@@ -98,7 +98,7 @@ public class SafeHtml_WikifyListTest {
}
@Test
public void testDashList1() {
public void dashList1() {
final SafeHtml o = html("A\n\n- line 1\n- 2nd line");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -111,7 +111,7 @@ public class SafeHtml_WikifyListTest {
}
@Test
public void testDashList2() {
public void dashList2() {
final SafeHtml o = html("A\n\n- line 1\n- 2nd line\n\nB");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -125,7 +125,7 @@ public class SafeHtml_WikifyListTest {
}
@Test
public void testDashList3() {
public void dashList3() {
final SafeHtml o = html("- line 1\n- 2nd line\n\nB");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);

View File

@@ -27,7 +27,7 @@ public class SafeHtml_WikifyPreformatTest {
}
@Test
public void testPreformat1() {
public void preformat1() {
final SafeHtml o = html("A\n\n This is pre\n formatted");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -40,7 +40,7 @@ public class SafeHtml_WikifyPreformatTest {
}
@Test
public void testPreformat2() {
public void preformat2() {
final SafeHtml o = html("A\n\n This is pre\n formatted\n\nbut this is not");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -54,7 +54,7 @@ public class SafeHtml_WikifyPreformatTest {
}
@Test
public void testPreformat3() {
public void preformat3() {
final SafeHtml o = html("A\n\n Q\n <R>\n S\n\nB");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -69,7 +69,7 @@ public class SafeHtml_WikifyPreformatTest {
}
@Test
public void testPreformat4() {
public void preformat4() {
final SafeHtml o = html(" Q\n <R>\n S\n\nB");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);

View File

@@ -27,7 +27,7 @@ public class SafeHtml_WikifyQuoteTest {
}
@Test
public void testQuote1() {
public void quote1() {
final SafeHtml o = html("> I'm happy\n > with quotes!\n\nSee above.");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -37,7 +37,7 @@ public class SafeHtml_WikifyQuoteTest {
}
@Test
public void testQuote2() {
public void quote2() {
final SafeHtml o = html("See this said:\n\n > a quoted\n > string block\n\nOK?");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -48,7 +48,7 @@ public class SafeHtml_WikifyQuoteTest {
}
@Test
public void testNestedQuotes1() {
public void nestedQuotes1() {
final SafeHtml o = html(" > > prior\n > \n > next\n");
final SafeHtml n = o.wikify();
assertThat(n.asString()).isEqualTo(quote(quote("prior") + "next\n"));

View File

@@ -20,7 +20,7 @@ import org.junit.Test;
public class SafeHtml_WikifyTest {
@Test
public void testWikify_OneLine1() {
public void wikify_OneLine1() {
final SafeHtml o = html("A B");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -28,7 +28,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testWikify_OneLine2() {
public void wikify_OneLine2() {
final SafeHtml o = html("A B\n");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -36,7 +36,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testWikify_OneParagraph1() {
public void wikify_OneParagraph1() {
final SafeHtml o = html("A\nB");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -44,7 +44,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testWikify_OneParagraph2() {
public void wikify_OneParagraph2() {
final SafeHtml o = html("A\nB\n");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -52,7 +52,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testWikify_TwoParagraphs() {
public void wikify_TwoParagraphs() {
final SafeHtml o = html("A\nB\n\nC\nD");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -60,7 +60,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testLinkify_SimpleHttp1() {
public void linkify_SimpleHttp1() {
final SafeHtml o = html("A http://go.here/ B");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -70,7 +70,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testLinkify_SimpleHttps2() {
public void linkify_SimpleHttps2() {
final SafeHtml o = html("A https://go.here/ B");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -80,7 +80,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testLinkify_Parens1() {
public void linkify_Parens1() {
final SafeHtml o = html("A (http://go.here/) B");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -90,7 +90,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testLinkify_Parens() {
public void linkify_Parens() {
final SafeHtml o = html("A http://go.here/#m() B");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);
@@ -100,7 +100,7 @@ public class SafeHtml_WikifyTest {
}
@Test
public void testLinkify_AngleBrackets1() {
public void linkify_AngleBrackets1() {
final SafeHtml o = html("A <http://go.here/> B");
final SafeHtml n = o.wikify();
assertThat(o).isNotSameAs(n);