diff options
author | 2019-09-04 19:57:07 -0400 | |
---|---|---|
committer | 2019-09-05 13:53:01 -0400 | |
commit | bd0767fc08a46c290b7a5d2f5dde1688c681cf0d (patch) | |
tree | 2d439e4af5f76e701e2b044ff7f28f454bdf099f /src/test | |
parent | d26dbbfc39a08657945c6c517879ac17b3d727cd (diff) |
Address vulnerability issues.
- exclude commons-beanutils from spring-boot-starter-velocity
- upgrade handlebars to version 4.1.2
- upgrade logback-classic to version 1.2.3
- upgrade xstream to version 1.4.11.1
- exclude dom4j from spring-boot-starter-velocity
- upgrade camel-core to version 2.21.5
- exclude struts-core from spring-boot-starter-velocity
- upgrade plexus-utils to version 3.0.22
Issue-ID: LOG-827
Issue-ID: LOG-1116
Issue-ID: LOG-1121
Issue-ID: LOG-1122
Issue-ID: LOG-1123
Issue-ID: LOG-1124
Issue-ID: LOG-1062
Issue-ID: LOG-1063
Signed-off-by: Prudence Au <prudence.au@amdocs.com>
Change-Id: Ib851883ba4338f800523bbdbdb714e39549e5ecd
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/onap/pomba/contextbuilder/sdnc/unittest/service/SdncContextBuilderTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/onap/pomba/contextbuilder/sdnc/unittest/service/SdncContextBuilderTest.java b/src/test/java/org/onap/pomba/contextbuilder/sdnc/unittest/service/SdncContextBuilderTest.java index b7fbd33..daa0cf7 100644 --- a/src/test/java/org/onap/pomba/contextbuilder/sdnc/unittest/service/SdncContextBuilderTest.java +++ b/src/test/java/org/onap/pomba/contextbuilder/sdnc/unittest/service/SdncContextBuilderTest.java @@ -30,6 +30,7 @@ import com.github.jknack.handlebars.internal.Files; import com.github.tomakehurst.wiremock.junit.WireMockRule; import java.io.File; import java.io.IOException; +import java.nio.charset.Charset; import java.text.MessageFormat; import java.util.Collections; import javax.servlet.http.HttpServletRequest; @@ -212,7 +213,7 @@ public class SdncContextBuilderTest { private void addResponse(String url, String responseFile, WireMockRule thisMock) throws IOException { File file = new File(ClassLoader.getSystemResource(responseFile).getFile()); - String payload = Files.read(file); + String payload = Files.read(file, Charset.defaultCharset()); thisMock.stubFor(get(url).willReturn(okJson(payload))); } |