CodeCoverage improvement for dcaegen2-analytics-tca-gen2
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dcae-analytics-web / src / test / java / org / onap / dcae / analytics / web / config / AnalyticsWebTestConfig.java
index b80be2c..b9a06a8 100644 (file)
@@ -1,6 +1,7 @@
 /*
- * ================================================================================
+ * ============LICENSE_START=======================================================
  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (c) 2022 Huawei. 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.
 
 package org.onap.dcae.analytics.web.config;
 
-import com.fasterxml.jackson.databind.ObjectMapper;
+import org.junit.jupiter.api.Test;
 
-import org.onap.dcae.analytics.model.util.json.AnalyticsModelJsonConversion;
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Import;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
 
-/**
- * @author Rajiv Singla
- */
-@Configuration
-@EnableAutoConfiguration
-@Import(value = {AnalyticsWebConfig.class, DmaapMrTestConfig.class})
 public class AnalyticsWebTestConfig {
 
-    @Bean
-    public ObjectMapper objectMapper() {
-        return AnalyticsModelJsonConversion.ANALYTICS_MODEL_OBJECT_MAPPER;
+    @Test
+    public void AnalyticsWebTestConfigTest () throws Exception {
+        AnalyticsWebConfig analyticsWebConfig = new AnalyticsWebConfig();
+        assertNotNull(analyticsWebConfig);
     }
-
 }