check if abstract test class has non abstract inheritor -> its test methods are used

This commit is contained in:
anna
2011-02-10 19:25:54 +01:00
parent b777030fcb
commit 5f06751b53
7 changed files with 62 additions and 4 deletions
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1 @@
public class ChildTest extends AbstractTest {}
@@ -0,0 +1,4 @@
public abstract class AbstractTest {
@org.junit.Test
public void testSmth() {}
}
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Test.java</file>
<line>3</line>
<entry_point TYPE="method" FQNAME="AbstractTest void testSmth()"/>
<description>Method is never used.</description>
</problem>
</problems>
@@ -0,0 +1,4 @@
public abstract class AbstractTest {
@org.junit.Test
public void testSmth() {}
}