Refactor the code base a bit 29/59629/4
authorPawelSzalapski <pawel.szalapski@nokia.com>
Wed, 8 Aug 2018 09:01:03 +0000 (11:01 +0200)
committerPawelSzalapski <pawel.szalapski@nokia.com>
Fri, 10 Aug 2018 12:21:34 +0000 (14:21 +0200)
commite1ccd83e39090f16a446b23e154b8e28530e2fdd
treec38f54e6690f58438cb5e66fed2f6aad177b4bfc
parent5deddeb4892243627ad342a41d4dcef0f7280a29
Refactor the code base a bit

Remove potential race condition coming from
shared 'version' veriable in singleton instance of
RestController.
Move the logic behind reading the json schemas out
of a on-request phase to application startup.
Minor refactoring done that will bump up test coverage.

Change-Id: I2ad1ba91dafafd785ede61591a4dc146abf6a1eb
Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
Issue-ID: DCAEGEN2-526
src/main/java/org/onap/dcae/ApplicationSettings.java
src/main/java/org/onap/dcae/CollectorSchemas.java [deleted file]
src/main/java/org/onap/dcae/SchemaValidator.java [deleted file]
src/main/java/org/onap/dcae/VesApplication.java
src/main/java/org/onap/dcae/restapi/ServletConfig.java
src/main/java/org/onap/dcae/restapi/VesRestController.java
src/test/java/org/onap/dcae/ApplicationSettingsTest.java
src/test/java/org/onap/dcae/TestingUtilities.java
src/test/java/org/onap/dcae/commonFunction/EventProcessorTest.java
src/test/java/org/onap/dcae/vestest/TestJsonSchemaValidation.java [deleted file]
src/test/java/org/onap/dcae/vestest/TestingUtilities.java [deleted file]