diff options
author | Kai <lukai@chinamobile.com> | 2020-01-08 11:02:35 +0800 |
---|---|---|
committer | Kai <lukai@chinamobile.com> | 2020-01-08 11:31:28 +0800 |
commit | c7074933aa8d37823fd5865957ea3ab2242e5d03 (patch) | |
tree | 71e060f9ae0e9db1a0800c1e0a44e7e9fb5b6961 /dcae-analytics/dcae-analytics-test/src/main | |
parent | eac44564ef6a4ca8e7fb9ad05eb76e49f6cf7a7a (diff) |
modify checkstyle error for tca test
Issue-ID: DCAEGEN2-2011
Signed-off-by: Kai Lu <lukai@chinamobile.com>
Change-Id: Ic62cf14c7a6c2c485aaf506c366d519381784b98
Diffstat (limited to 'dcae-analytics/dcae-analytics-test/src/main')
-rw-r--r-- | dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java b/dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java index 955cab8..419fe2f 100644 --- a/dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java +++ b/dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java @@ -271,7 +271,7 @@ abstract class BaseAnalyticsTest { */ public static <T> T deserializeJsonFileToModel(final String jsonFileLocation, final Class<T> modelClass, final ObjectMapper objectMapper) { - try( final InputStream jsonFileInputStream = + try (final InputStream jsonFileInputStream = BaseAnalyticsTest.class.getClassLoader().getResourceAsStream(jsonFileLocation)) { assertThat(jsonFileInputStream).as("Input JSON File location must be valid").isNotNull(); return objectMapper.readValue(jsonFileInputStream, modelClass); |