package org.jenkinsci.plugins.ghprb.rules;

import java.io.IOException;

import org.jvnet.hudson.test.JenkinsRule;

import com.cloudbees.plugins.flow.BuildFlow;

/**
 * @author mdelapenya (Manuel de la Peña)
 */
public class JenkinsRuleWithBuildFlow extends JenkinsRule {

	public BuildFlow createBuildFlowProject() throws IOException {
		return createBuildFlowProject(createUniqueProjectName());
	}

	public BuildFlow createBuildFlowProject(String name)
		throws IOException {

		return jenkins.createProject(BuildFlow.class, name);
	}

}
Support creating BuildFlow projects using a TestRule
Tests: Support creating BuildFlow projects using a TestRule
