Skip to content

Commit

Permalink
[JENKINS-33578] Removed a test for doAutoCompleteUpstreamProjectName …
Browse files Browse the repository at this point in the history
…for DownstreamBuildSelector. Workflow projects continue to be listed as allow to complete folder names.
  • Loading branch information
ikedam committed Apr 3, 2016
1 parent cafa613 commit 2e349be
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -706,14 +706,4 @@ public void testCheckUpstreamProjectNameForWorkflow() throws Exception {
// DownstreamBuildSelector is not applicable to workflow.
assertEquals(FormValidation.Kind.ERROR, d.doCheckUpstreamProjectName(context, target.getFullName()).kind);
}

@Test
public void testAutoCompleteUpstreamProjectNameForWorkflow() throws Exception {
FreeStyleProject context = j.createFreeStyleProject();
WorkflowJob target = j.jenkins.createProject(WorkflowJob.class, "workflow-test");

DownstreamBuildSelector.DescriptorImpl d = (DownstreamBuildSelector.DescriptorImpl)j.jenkins.getDescriptorOrDie(DownstreamBuildSelector.class);
// DownstreamBuildSelector is not applicable to workflow.
assertFalse(d.doAutoCompleteUpstreamProjectName(target.getFullDisplayName(), context).getValues().contains(target.getFullDisplayName()));
}
}

0 comments on commit 2e349be

Please sign in to comment.