Explicitly initialise the EventCallback class 69/61069/1
authormark.j.leonard <mark.j.leonard@gmail.com>
Fri, 17 Aug 2018 09:51:00 +0000 (10:51 +0100)
committermark.j.leonard <mark.j.leonard@gmail.com>
Fri, 17 Aug 2018 09:53:43 +0000 (10:53 +0100)
commit343089923ca1dafb6a530b77718df5e82926b557
tree36f7c175113867b9202dfb735da03618cf55e6e5
parent2115a8723806e3ff9d18eb6d348fae7aee09d16e
Explicitly initialise the EventCallback class

Remove the @Autowired annotation on the Babel Service Client and pass
this as a parameter so that Spring will inject the value.
This ensures that the EventCallback is not initialised with a null
value.

Issue-ID: AAI-1501
Change-Id: Ic1a66bf61afec4f707162acf323b83a8a48e8f28
Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
src/main/java/org/onap/aai/modelloader/notification/EventCallback.java
src/main/java/org/onap/aai/modelloader/notification/NotificationPublisher.java
src/main/java/org/onap/aai/modelloader/service/ModelLoaderService.java
src/test/java/org/onap/aai/modelloader/notification/TestEventCallback.java