diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-01-10 16:40:32 -0500 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-01-10 16:56:45 -0500 |
commit | c44a035ed8222c2b39bd0fd522b952fac61f9a36 (patch) | |
tree | 2f35316a9d892b8f73f1b2b655deb3b48fe8ae06 /src/test/java/org/onap/pomba/contextaggregator/rest | |
parent | 011ac9cfcfd1d5aba077feffb0edbb25818e4ea0 (diff) |
Context Aggregator L2 Fabric
Upgraded the Context Aggregator to use the latest pomba-audit-common
model.
Also cleaned up a lot of whitespace and import order errors that were
being output by the ONAP audit.
Issue-ID: LOG-920
Change-Id: I0a7e15f19f28775bbd3e9cf4e95c4de176545ae1
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'src/test/java/org/onap/pomba/contextaggregator/rest')
-rw-r--r-- | src/test/java/org/onap/pomba/contextaggregator/rest/RestRequestTest.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/test/java/org/onap/pomba/contextaggregator/rest/RestRequestTest.java b/src/test/java/org/onap/pomba/contextaggregator/rest/RestRequestTest.java index 58624b5..c72b83c 100644 --- a/src/test/java/org/onap/pomba/contextaggregator/rest/RestRequestTest.java +++ b/src/test/java/org/onap/pomba/contextaggregator/rest/RestRequestTest.java @@ -15,8 +15,11 @@ * limitations under the License. * ============LICENSE_END===================================================== */ + package org.onap.pomba.contextaggregator.rest; +import java.io.File; + import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -29,27 +32,23 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import java.io.File; - @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest @ConfigurationProperties("classpath:/src/test/resources/GoodProperties/sdnc.properties") - public class RestRequestTest -{ +public class RestRequestTest { + @Mock Logger log; @InjectMocks RestRequest restRequest; @Before - public void setUp() - { + public void setUp() { MockitoAnnotations.initMocks(this); } @Test - public void testGetModelData() throws Exception - { + public void testGetModelData() throws Exception { File configFile = new File("./src/test/resources/GoodProperties/sdnc.properties"); ContextBuilder contextBuilder = new ContextBuilder(configFile); |