My first approach was to simply:
public class JenkinsApiTest {
public void test() {
ItemGroupItem itemGroup = new MyItemGroup();
FreeStyleProject p = new FreeStyleProject(itemGroup, n0);
p.getConfigFile().asString();
}
this results in the AbstractProject constructor being
Ok makes sense but is possible to create eg. a FreeStyleProject /outside/ a
Junit TestRunner. Seems a bit strange that this can only be done through a
TestRunner.
--
View this message in context:
IIRC, you need to use a Junit TestRunner to run the test, so that Junit's
test lifecycle is followed.
-- Dean
On 1/15/13 11:22 AM, jserup johs.se...@gmail.com wrote:
I am creating a FreeStyleProject using this test class:
import org.jvnet.hudson.test.HudsonTestCase;
import