Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
“ Class is a JUnit TestCase and defines a suite() method. However, the suite method needs to be declared as either
public static junit.framework.Test suite()
or
public static junit.framework.TestSuite suite()” – 2014-01-27
When using the JUnit library you can group TestCases together and form a suite.
A static suite() method that is declared in a class that is a subtype of TestCase is automatically executed when running this test case. However, to be chosen, this suite() method has to be declared public and static, just as the text above describes.
<code Java> public Test suite() {
}
</Code>
<code Java> public static Test suite() {
}
</Code>
Benchmark project | Time | # Hits | Precision | Recall | |||||
---|---|---|---|---|---|---|---|---|---|
FB | JT | FB | JT | Delta | FB | JT | Delta | ||
Apache Tomcat | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
Argo UML | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
AWT | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
Jakarta | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
Java IO | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
JHotDraw | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
jrefactory | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
JServlet | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
JUnit | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
Lexi | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
Mapper XML | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
nutch | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
PMD | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
quickuml | < 1s | 0 | 0 | 100% | 100% | 0 | 100% | 100% | 0 |
FB = FindBugs, JT = JTransformer, Delta = JTransformer - FindBug
All measurements were taken on a machine with the following properties: