Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ private static boolean hasJUnitAttr(MethodSymbol methodSym) {
* <li>The method's name begins with "test".
* <li>The method has no parameters.
* <li>The method is public.
* <li>The method is not static.
* <li>The method returns void.
* </ol>
*/
Expand All @@ -164,7 +163,6 @@ private static boolean hasJUnitAttr(MethodSymbol methodSym) {
methodNameStartsWith("test"),
methodHasNoParameters(),
Matchers.<MethodTree>hasModifier(Modifier.PUBLIC),
not(Matchers.<MethodTree>hasModifier(Modifier.STATIC)),
methodReturns(VOID_TYPE));

/** Common matcher for possible JUnit setUp/tearDown methods. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,7 @@ public class KansasGlobalMetadataUtilsTest extends TestCase {
public static void testParseGlobalMetadata() {}
}
""")
.addOutputLines(
"out/KansasGlobalMetadataUtilsTest.java",
"""
import junit.framework.TestCase;

public class KansasGlobalMetadataUtilsTest extends TestCase {
public void testParseGlobalMetadata() {}
}
""")
.expectUnchanged()
.doTest();
}

Expand Down
Loading