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)