+
+ private JpaToscaProperty setUpJpaToscaProperty() {
+ PfConceptKey pparentKey = new PfConceptKey("tParentKey", VERSION_001);
+ PfReferenceKey pkey = new PfReferenceKey(pparentKey, "trigger0");
+ PfConceptKey ptypeKey = new PfConceptKey("TTypeKey", VERSION_001);
+
+ JpaToscaProperty tp = new JpaToscaProperty(pkey, ptypeKey);
+ tp.setDescription(A_DESCRIPTION);
+ tp.setRequired(false);
+ tp.setDefaultValue(DEFAULT_KEY);
+ tp.setStatus(ToscaProperty.Status.SUPPORTED);
+
+ JpaToscaConstraintLogical lsc = new JpaToscaConstraintLogical(JpaToscaConstraintOperation.EQ, "hello");
+ // Maps and Lists need to be modifiable
+ List<JpaToscaConstraint> constraints = new ArrayList<>(List.of(lsc));
+ tp.setConstraints(constraints);
+
+ PfConceptKey typeKey = new PfConceptKey("type", VERSION_001);
+ JpaToscaSchemaDefinition tes = new JpaToscaSchemaDefinition(typeKey);
+ tp.setEntrySchema(tes);
+ TreeMap<String, String> metadata = new TreeMap<>(Map.of("metaA", "dataA", "metaB", "dataB"));
+ tp.setMetadata(metadata);
+
+ return tp;
+ }