diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2021-02-12 15:18:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-02-12 15:18:12 +0000 |
commit | 65c7d3a4dcd2841c5fafab6e7b8d310e5ec1cb6c (patch) | |
tree | 62d22bd4ee6ff1f3f05407efb3905f700494ccba /feature-simulators | |
parent | 28ba5ad9ef57524a81a997f7200e7126a4462859 (diff) | |
parent | 757a65fe95f5f203545085ea63f659a817dad260 (diff) |
Merge "Fix sonars from dependency upgrade"
Diffstat (limited to 'feature-simulators')
-rw-r--r-- | feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorJaxRsTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorJaxRsTest.java b/feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorJaxRsTest.java index b1275004..6e1a8d68 100644 --- a/feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorJaxRsTest.java +++ b/feature-simulators/src/test/java/org/onap/policy/drools/simulators/DMaaPSimulatorJaxRsTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP * ================================================================================ - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019, 2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,9 +36,11 @@ import javax.servlet.http.HttpServletResponse; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.runner.RunWith; import org.mockito.Mock; -import org.mockito.MockitoAnnotations; +import org.mockito.junit.MockitoJUnitRunner; +@RunWith(MockitoJUnitRunner.class) public class DMaaPSimulatorJaxRsTest { private static final String MESSAGE = "hello"; private static final String MESSAGE2 = "world"; @@ -57,8 +59,6 @@ public class DMaaPSimulatorJaxRsTest { */ @Before public void setUp() { - MockitoAnnotations.initMocks(this); - sim = new DMaaPSimulatorJaxRs(); } |