提交 18b5f4f1 编写于 作者: J Jesse Glick 提交者: Kohsuke Kawaguchi

[JENKINS-17337] Added test for NPE.(cherry picked from commit...

[JENKINS-17337] Added test for NPE.(cherry picked from commit 1bf958af)
上级 6b1f8d1a
......@@ -447,4 +447,20 @@ public class MatrixProjectTest extends HudsonTestCase {
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.
先完成此消息的编辑!
想要评论请 注册