提交 1bf958af 编写于 作者: J Jesse Glick

[JENKINS-17337] Added test for NPE.

上级 232f6755
......@@ -471,4 +471,20 @@ public class MatrixProjectTest {
assertNull(defaultExecutionStrategy.getSorter());
}
@Bug(17337)
@Test public void reload() throws Exception {
MatrixProject p = j.createMatrixProject();
AxisList axes = new AxisList();
axes.add(new TextAxis("p", "only"));
p.setAxes(axes);
String n = p.getFullName();
j.buildAndAssertSuccess(p);
j.jenkins.reload();
p = j.jenkins.getItemByFullName(n, MatrixProject.class);
assertNotNull(p);
MatrixConfiguration c = p.getItem("p=only");
assertNotNull(c);
assertNotNull(c.getBuildByNumber(1));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册