RE: Creating a FreeStyleProject outside JUnit?

2013-01-18 Thread jserup
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

Re: Creating a FreeStyleProject outside JUnit?

2013-01-16 Thread jserup
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:

Re: Creating a FreeStyleProject outside JUnit?

2013-01-15 Thread Dean Yu
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