提交 12dd903e 编写于 作者: K Kohsuke Kawaguchi

Added a test case.

上级 95c5ea27
......@@ -68,6 +68,10 @@ public class DefaultMatrixExecutionStrategyImpl extends MatrixExecutionStrategy
this(false,false,null,null,null);
}
public boolean getHasTouchStoneCombinationFilter() {
return touchStoneCombinationFilter!=null;
}
/**
* If true, {@link MatrixRun}s are run sequentially, instead of running in parallel.
*
......
......@@ -11,8 +11,7 @@ f.optionalBlock (field:"runSequentially", title:_("Run each configuration sequen
}
}
f.optionalBlock (field:"hasTouchStoneCombinationFilter", title:_("Execute touchstone builds first"),
inline:true, checked:my.touchStoneCombinationFilter!=null) {
f.optionalBlock (field:"hasTouchStoneCombinationFilter", title:_("Execute touchstone builds first"), inline:true) {
// TODO: help="/help/matrix/touchstone.html">
// TODO: move l10n from MatrixProject/configEntries.jelly
......
......@@ -229,6 +229,17 @@ public class MatrixProjectTest extends HudsonTestCase {
assertEquals(oi.name,ni.name);
assertEquals(oi.values,ni.values);
}
def before = new DefaultMatrixExecutionStrategyImpl(true, "foo", Result.UNSTABLE, null)
p.executionStrategy = before;
configRoundtrip(p);
assertEqualDataBoundBeans(p.executionStrategy,before);
before = new DefaultMatrixExecutionStrategyImpl(false, null, null, null)
p.executionStrategy = before;
configRoundtrip(p);
assertEqualDataBoundBeans(p.executionStrategy,before);
}
public void testLabelAxes() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册