protected AbstractYamlTest(String name) throws IOException {
super(name);
List tests = SPFYamlTestDescriptor.loadTests(getFilename());
Iterator i = tests.iterator();
while (i.hasNext() && data == null) {
SPFYamlTestDescriptor def = (SPFYamlTestDescriptor) i.next();
if (name.equals(def.getComment()+" #COMPLETE!")) {
data = def;
this.test = null;
} else {
Iterator j = def.getTests().keySet().iterator();
while (j.hasNext() && data == null) {
String test = (String) j.next();
if (name.equals(def.getComment()+ " #"+test)) {
data = def;
this.test = test;
}
}
}