From 991cac9debfc87fbc5f4e664e6ae0c73f7eb1cf6 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Mon, 25 Mar 2013 12:49:23 -0700 Subject: [PATCH] Revert "[JENKINS-17337] Added test for NPE.(cherry picked from commit 1bf958afb196d0c56b37f00681027a549d0c9189)" This reverts commit 18b5f4f13377349b1c249c2f62d11966c5b7dd9d. It looks like this change depends on other test harness related changes. It doesn't build on this branch. --- .../hudson/matrix/MatrixProjectTest.groovy | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy b/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy index b2389f7482..c9c2294dca 100644 --- a/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy +++ b/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy @@ -447,20 +447,4 @@ 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)); - } - } -- GitLab