diff --git a/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy b/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy index c9c2294dca8baaae93da44a1bf6641cd546bd342..b2389f74826002ddc91b422833878953f676b92e 100644 --- a/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy +++ b/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy @@ -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)); + } + }