diff options
author | mark.j.leonard <mark.j.leonard@gmail.com> | 2018-08-17 10:51:00 +0100 |
---|---|---|
committer | mark.j.leonard <mark.j.leonard@gmail.com> | 2018-08-17 10:53:43 +0100 |
commit | 343089923ca1dafb6a530b77718df5e82926b557 (patch) | |
tree | 36f7c175113867b9202dfb735da03618cf55e6e5 /src/test/java | |
parent | 2115a8723806e3ff9d18eb6d348fae7aee09d16e (diff) |
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>
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/onap/aai/modelloader/notification/TestEventCallback.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/onap/aai/modelloader/notification/TestEventCallback.java b/src/test/java/org/onap/aai/modelloader/notification/TestEventCallback.java index 1215a7b..eb326fd 100644 --- a/src/test/java/org/onap/aai/modelloader/notification/TestEventCallback.java +++ b/src/test/java/org/onap/aai/modelloader/notification/TestEventCallback.java @@ -28,6 +28,7 @@ import static org.mockito.Mockito.when; import java.io.IOException; import java.util.List; import java.util.Properties; + import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -67,7 +68,7 @@ public class TestEventCallback { mockDistributionClient = mock(IDistributionClient.class); mockNotificationPublisher = mock(NotificationPublisher.class); - eventCallback = new EventCallback(mockDistributionClient, config); + eventCallback = new EventCallback(mockDistributionClient, config, null); Whitebox.setInternalState(eventCallback, "artifactDeploymentManager", mockArtifactDeploymentManager); Whitebox.setInternalState(eventCallback, "artifactDownloadManager", mockArtifactDownloadManager); |