Rename test helper to not look like a test.

This commit is contained in:
Michael Bayne
2014-12-13 15:26:51 -08:00
parent 453d3928e5
commit 4cb0d876ed
2 changed files with 3 additions and 3 deletions
@@ -10,12 +10,12 @@ import org.junit.runners.model.FrameworkMethod;
/**
* @author Yoryos Valotasios
*/
public class SpecFrameworkTest extends FrameworkMethod
public class SpecFrameworkMethod extends FrameworkMethod
{
private final String group;
private final Spec spec;
public SpecFrameworkTest (Method method, String group, Spec spec) {
public SpecFrameworkMethod (Method method, String group, Spec spec) {
super(method);
this.group = group;
this.spec = spec;
@@ -62,7 +62,7 @@ public class SpecRunner extends BlockJUnit4ClassRunner
List<FrameworkMethod> tests = new ArrayList<FrameworkMethod>();
for (String name : groups) {
for (Map<String, Object> test: getTestsForGroup(name)) {
tests.add(new SpecFrameworkTest(m, name, new Spec(test)));
tests.add(new SpecFrameworkMethod(m, name, new Spec(test)));
}
}
return tests;