package org.simantics.tests.modelled.junit.v2;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
private final ModelledSTSSuite suite;
private final List<ModelledSTSTestRunner> children;
- private Map<String, List<CommandSessionVariable>> storedVariables;
+ private Map<String, List<CommandSessionVariable>> storedVariables = new HashMap<>();
public ModelledSTSSuiteRunner(ModelledSTSSuite suite) throws InitializationError {
super(ModelledSTSSuiteRunner.class);
variables.addAll(storedVars);
}
}
+ notifier.fireTestStarted(description);
List<CommandSessionVariable> newVars = child.runWithVars(variables);
storedVariables.put(child.getTest().getName(), newVars);
notifier.fireTestFinished(description);
- } catch (Exception e) {
+ } catch (Throwable e) {
notifier.fireTestFailure(new Failure(description, e));
}
}