Skip to content
Permalink
Browse files

[JENKINS-33578] Removed a test for doAutoCompleteUpstreamProjectName …

…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 2e349bea6791d31799defad01649a09d902b1ac7
Showing with 0 additions and 10 deletions.
  1. +0 −10 src/test/java/hudson/plugins/copyartifact/DownstreamBuildSelectorTest.java
@@ -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.
You can’t perform that action at this time.