Search in sources :

Example 6 with DescribableList

use of hudson.util.DescribableList in project hudson-2.x by hudson.

the class DescribableListProjectPropertyTest method testGetDefaultValue.

/**
     * Verify {@link DescribableListProjectProperty#getDefaultValue()} method.
     */
@Test
public void testGetDefaultValue() {
    DescribableList defaultValue = property.getDefaultValue();
    assertNotNull(defaultValue);
    //Default value should be initialized and stored as original value
    assertTrue(property.getOriginalValue() == defaultValue);
    assertFalse(property.isOverridden());
}
Also used : DescribableList(hudson.util.DescribableList) Test(org.junit.Test)

Aggregations

DescribableList (hudson.util.DescribableList)6 Test (org.junit.Test)4 Shell (hudson.tasks.Shell)1 List (java.util.List)1