Search in sources :

Example 1 with ProductMajorVersion

use of com.synopsys.integration.configuration.util.ProductMajorVersion 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

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 NullableStringProperty (com.synopsys.integration.configuration.property.types.string.NullableStringProperty)1 ProductMajorVersion (com.synopsys.integration.configuration.util.ProductMajorVersion)1 Test (org.junit.jupiter.api.Test)1