Skip to content
Permalink
Browse files

[FIXED JENKINS-17680] Update a test for configuration-upgrading.

  • Loading branch information...
ikedam committed Jul 27, 2013
1 parent addc953 commit 7214a147cd8a5ebb88bdfce6ae3e5b03b341e8a2
Showing with 0 additions and 9 deletions.
  1. +0 −9 src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
@@ -912,18 +912,9 @@ public void testFieldValidation() throws Exception {

@LocalData
public void testProjectNameSplit() throws Exception {
FreeStyleProject parameterized = Jenkins.getInstance().getItemByFullName("parameterized", FreeStyleProject.class);
assertNotNull(parameterized);
assertTrue(((BooleanParameterValue) parameterized.getBuildByNumber(2).getAction(ParametersAction.class).getParameter("good")).value);
FreeStyleProject copier = Jenkins.getInstance().getItemByFullName("copier", FreeStyleProject.class);
assertNotNull(copier);
String configXml = copier.getConfigFile().asString();
assertTrue(configXml, configXml.contains("<projectName>matrix/which=two</projectName>"));
FreeStyleBuild build = copier.scheduleBuild2(0).get();
@SuppressWarnings("deprecation") String log = build.getLog();
assertEquals(log, Result.SUCCESS, build.getResult());
assertTrue(log, log.contains("OK"));
configXml = copier.getConfigFile().asString();
assertFalse(configXml, configXml.contains("<projectName>"));
assertTrue(configXml, configXml.contains("<project>plain</project>"));
assertTrue(configXml, configXml.contains("<project>parameterized</project>"));

0 comments on commit 7214a14

Please sign in to comment.
You can’t perform that action at this time.