ResponseEntity<String> resp = restClient().getForEntity(url).block();
ProducerInfoTypeInfo info = gson.fromJson(resp.getBody(), ProducerInfoTypeInfo.class);
assertThat(info.jobDataSchema).isNotNull();
+ assertThat(info.typeSpecificInformation).isNotNull();
}
@Test
ProducerInfoTypeInfo producerEiTypeRegistrationInfo(String typeId)
throws JsonMappingException, JsonProcessingException {
- return new ProducerInfoTypeInfo(jsonSchemaObject());
+ return new ProducerInfoTypeInfo(jsonSchemaObject(), typeSpecifcInfoObject());
}
ProducerRegistrationInfo producerEiRegistratioInfoRejecting(String typeId)
}
}
+ private Object typeSpecifcInfoObject() {
+ return jsonObject("{ \"propertyName\" : \"value\" }");
+ }
+
private Object jsonSchemaObject() {
// a json schema with one mandatory property named "string"
String schemaStr = "{" //