提交 c3a61c67 编写于 作者: V Vojtech Juranek

Modified pull421 to fix failed unit tests.xs

上级 9c197b24
......@@ -896,12 +896,15 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
}
@Override
public synchronized List<Action> getActions() {
List<Action> actions = new Vector<Action>(super.getActions());
//add transient actions too
actions.addAll(createTransientActions());
public List<Action> getActions() {
List<Action> actions = super.getActions();
actions.addAll(createTransientActions());
return actions;
}
public List<Action> getPersistentActions(){
return super.getActions();
}
/**
* Builds up a set of variable names that contain sensitive values that
......
......@@ -251,9 +251,9 @@ public class XStream2Test extends TestCase {
InputStream is = XStream2Test.class.getResourceAsStream("runMatrix.xml");
MatrixRun result = (MatrixRun) Run.XSTREAM.fromXML(is);
assertNotNull(result);
assertNotNull(result.getActions());
assertEquals(2, result.getActions().size());
InterruptedBuildAction action = (InterruptedBuildAction) result.getActions().get(1);
assertNotNull(result.getPersistentActions());
assertEquals(2, result.getPersistentActions().size());
InterruptedBuildAction action = (InterruptedBuildAction) result.getPersistentActions().get(1);
assertNotNull(action.getCauses());
assertEquals(1, action.getCauses().size());
CauseOfInterruption.UserInterruption cause =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册