Search in sources :

Example 16 with FreeStyleProjectMock

use of hudson.model.FreeStyleProjectMock in project hudson-2.x by hudson.

the class DescribableListProjectPropertyTest method setUp.

@Before
public void setUp() {
    project = new FreeStyleProjectMock("project");
    parent = new FreeStyleProjectMock("parent");
    final String propertyKey = "propertyKey";
    property = new DescribableListProjectProperty(project);
    property.setKey(propertyKey);
}
Also used : FreeStyleProjectMock(hudson.model.FreeStyleProjectMock) Before(org.junit.Before)

Example 17 with FreeStyleProjectMock

use of hudson.model.FreeStyleProjectMock in project hudson-2.x by hudson.

the class TriggerProjectPropertyTest method setUp.

@Before
public void setUp() {
    final String propertyKey = "propertyKey";
    FreeStyleProjectMock project = new FreeStyleProjectMock("project");
    property = new TriggerProjectProperty(project);
    property.setKey(propertyKey);
}
Also used : FreeStyleProjectMock(hudson.model.FreeStyleProjectMock) Before(org.junit.Before)

Aggregations

FreeStyleProjectMock (hudson.model.FreeStyleProjectMock)17 Before (org.junit.Before)9 Hudson (hudson.model.Hudson)8 Test (org.junit.Test)8 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)8 FreeStyleProject (hudson.model.FreeStyleProject)7 ArrayList (java.util.ArrayList)7 Job (hudson.model.Job)6 JSONObject (net.sf.json.JSONObject)2 StaplerRequest (org.kohsuke.stapler.StaplerRequest)2 BooleanParameterDefinition (hudson.model.BooleanParameterDefinition)1 Descriptor (hudson.model.Descriptor)1 ParameterDefinition (hudson.model.ParameterDefinition)1 ParametersDefinitionProperty (hudson.model.ParametersDefinitionProperty)1 JavadocArchiver (hudson.tasks.JavadocArchiver)1 Publisher (hudson.tasks.Publisher)1 TimerTrigger (hudson.triggers.TimerTrigger)1