Search in sources :

Example 6 with NullableStringProperty

use of com.synopsys.integration.configuration.property.types.string.NullableStringProperty in project synopsys-detect by blackducksoftware.

the class PropertyConfigurationTest method testPropertyIsDeprecated.

@Test
public void testPropertyIsDeprecated() {
    Property property1 = new NullableStringProperty("name");
    property1.setRemovalDeprecation("desc", new ProductMajorVersion(1));
    Assertions.assertTrue(property1.isDeprecatedForRemoval());
    Property property2 = new NullableStringProperty("name");
    property2.addDeprecatedValueInfo("val", "reason");
    Assertions.assertFalse(property2.isDeprecatedForRemoval());
}
Also used : NullableStringProperty(com.synopsys.integration.configuration.property.types.string.NullableStringProperty) NullableAlikeProperty(com.synopsys.integration.configuration.property.base.NullableAlikeProperty) Property(com.synopsys.integration.configuration.property.Property) ValuedAlikeProperty(com.synopsys.integration.configuration.property.base.ValuedAlikeProperty) PassthroughProperty(com.synopsys.integration.configuration.property.base.PassthroughProperty) NullableStringProperty(com.synopsys.integration.configuration.property.types.string.NullableStringProperty) ProductMajorVersion(com.synopsys.integration.configuration.util.ProductMajorVersion) Test(org.junit.jupiter.api.Test)

Aggregations

NullableStringProperty (com.synopsys.integration.configuration.property.types.string.NullableStringProperty)6 Test (org.junit.jupiter.api.Test)6 PropertySource (com.synopsys.integration.configuration.source.PropertySource)5 Property (com.synopsys.integration.configuration.property.Property)1 NullableAlikeProperty (com.synopsys.integration.configuration.property.base.NullableAlikeProperty)1 PassthroughProperty (com.synopsys.integration.configuration.property.base.PassthroughProperty)1 ValuedAlikeProperty (com.synopsys.integration.configuration.property.base.ValuedAlikeProperty)1 SpringConfigurationPropertySource (com.synopsys.integration.configuration.source.SpringConfigurationPropertySource)1 ProductMajorVersion (com.synopsys.integration.configuration.util.ProductMajorVersion)1 ArrayList (java.util.ArrayList)1 MockEnvironment (org.springframework.mock.env.MockEnvironment)1