I think your problem is the manner in which you are trying to create the object: you're calling a utility method on HudsonTestCase which extends JUnit's TestCase class. HudsonTestCase assumes its being used from JUnit.
-- Dean ________________________________________ From: jenkinsci-users@googlegroups.com [jenkinsci-users@googlegroups.com] on behalf of jserup [johs.se...@gmail.com] Sent: Wednesday, January 16, 2013 3:43 AM To: jenkinsci-users@googlegroups.com Subject: Re: Creating a FreeStyleProject outside JUnit? 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: http://jenkins.361315.n4.nabble.com/Creating-a-FreeStyleProject-outside-JUnit-tp4651594p4651665.html Sent from the Jenkins users mailing list archive at Nabble.com.