summaryrefslogtreecommitdiffstats
path: root/dcaedt_catalog/asdc/src
diff options
context:
space:
mode:
Diffstat (limited to 'dcaedt_catalog/asdc/src')
-rw-r--r--dcaedt_catalog/asdc/src/test/java/org/onap/sdc/dcae/utils/SDCResponseErrorHandlerTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/dcaedt_catalog/asdc/src/test/java/org/onap/sdc/dcae/utils/SDCResponseErrorHandlerTest.java b/dcaedt_catalog/asdc/src/test/java/org/onap/sdc/dcae/utils/SDCResponseErrorHandlerTest.java
index 15c4a8a..82eec21 100644
--- a/dcaedt_catalog/asdc/src/test/java/org/onap/sdc/dcae/utils/SDCResponseErrorHandlerTest.java
+++ b/dcaedt_catalog/asdc/src/test/java/org/onap/sdc/dcae/utils/SDCResponseErrorHandlerTest.java
@@ -3,9 +3,8 @@ package org.onap.sdc.dcae.utils;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
-import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
-import org.mockito.runners.MockitoJUnitRunner;
+import org.mockito.MockitoAnnotations;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.client.ClientHttpResponse;
@@ -15,7 +14,6 @@ import org.springframework.web.client.HttpServerErrorException;
import java.io.IOException;
import java.io.InputStream;
-@RunWith(MockitoJUnitRunner.class)
public class SDCResponseErrorHandlerTest {
@InjectMocks
private SDCResponseErrorHandler classUnderTest;
@@ -24,6 +22,7 @@ public class SDCResponseErrorHandlerTest {
@Before
public void setup() {
+ MockitoAnnotations.initMocks(this);
clientHttpResponse = new ClientHttpResponse() {
@Override
public HttpStatus getStatusCode() throws IOException {