From c1cd5ef428017bc26513395a3bfc00caf7209f8a Mon Sep 17 00:00:00 2001 From: "k.kazak" Date: Mon, 27 May 2019 15:00:15 +0200 Subject: Fix sonar for MapEntry MapEntry bug: make entry private and provide accessors MapEntry codesmell: move comment 'Required by JAXB' into empty constructor MapElements codesmell: move explanatory comment inside empty constructor MapElements codesmell: log error stacktrace MapAdapter codesmell: use entry set instead of key set for iteration JAXBMarshallingTest: add test cases to cover 100% of MapElements & other cases Change-Id: If51f1f86b5ad44b3462424e4fd73cb0eff352124 Issue-ID: SO-1811 Signed-off-by: k.kazak --- .../VfRequest-marshalled-with-complex-object.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'adapters/mso-adapters-rest-interface/src/test/resources') diff --git a/adapters/mso-adapters-rest-interface/src/test/resources/VfRequest-marshalled-with-complex-object.xml b/adapters/mso-adapters-rest-interface/src/test/resources/VfRequest-marshalled-with-complex-object.xml index ce175127df..d4955f1b18 100644 --- a/adapters/mso-adapters-rest-interface/src/test/resources/VfRequest-marshalled-with-complex-object.xml +++ b/adapters/mso-adapters-rest-interface/src/test/resources/VfRequest-marshalled-with-complex-object.xml @@ -3,13 +3,29 @@ false true + + vcpe_image_name + ubuntu-16-04-cloud-amd64 + test array ["a","b","c"] + + test map + {"d":"e"} + test-null + + marshalling error + [] + + + test-empty + + -- cgit 1.2.3-korg