Rename test helper to not look like a test.
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user