tp.setRequired(false);
assertFalse(tp.isRequired());
- PfConceptKey tdefaultKey = new PfConceptKey("defaultKey", "0.0.1");
- tp.setDefaultValue(tdefaultKey);
+ tp.setDefaultValue("defaultKey");
tp.setStatus(ToscaProperty.Status.SUPPORTED);
assertFalse(tp.compareTo(otherDt) == 0);
otherDt.setRequired(false);
assertFalse(tp.compareTo(otherDt) == 0);
- otherDt.setDefaultValue(tdefaultKey);
+ otherDt.setDefaultValue("defaultKey");
assertFalse(tp.compareTo(otherDt) == 0);
otherDt.setStatus(ToscaProperty.Status.SUPPORTED);
assertFalse(tp.compareTo(otherDt) == 0);
assertEquals("target is marked @NonNull but is null", exc.getMessage());
}
- assertEquals(6, tp.getKeys().size());
+ assertEquals(5, tp.getKeys().size());
assertEquals(2, new ToscaProperty().getKeys().size());
new ToscaProperty().clean();
tp.setDefaultValue(null);
assertTrue(tp.validate(new PfValidationResult()).isValid());
- tp.setDefaultValue(tdefaultKey);
- assertTrue(tp.validate(new PfValidationResult()).isValid());
-
- tp.setDefaultValue(PfConceptKey.getNullKey());
- assertFalse(tp.validate(new PfValidationResult()).isValid());
- tp.setDefaultValue(tdefaultKey);
+ tp.setDefaultValue("defaultKey");
assertTrue(tp.validate(new PfValidationResult()).isValid());
tp.getConstraints().add(null);