Fix response of fetch data type endpoint 24/131424/3
authorandre.schmid <andre.schmid@est.tech>
Tue, 11 Oct 2022 13:20:40 +0000 (14:20 +0100)
committerandre.schmid <andre.schmid@est.tech>
Wed, 12 Oct 2022 13:03:12 +0000 (14:03 +0100)
commitb24a4f2f4edf845c10ef42545496256b0bdbb8a8
tree20cbb76bc910f80413755cb90cf9afd23ee70870
parent437f3d965cf79d98678665f6695256f8294c0794
Fix response of fetch data type endpoint

The catalog endpoint /v1/catalog/data-types/<id> is returning an
Optional instead of the Data Type itself.
Improves unit test to verify the response payload.

Change-Id: I781917fb66225abf911a043370917e7b7a183bb1
Issue-ID: SDC-4211
Signed-off-by: André Schmid <andre.schmid@est.tech>
catalog-be/src/main/java/org/openecomp/sdc/be/servlets/DataTypeServlet.java
catalog-be/src/test/java/org/openecomp/sdc/be/servlets/DataTypeServletTest.java