diff options
author | Rashmi Pujar <rashmi.pujar1@bell.ca> | 2022-03-02 22:12:02 -0500 |
---|---|---|
committer | Rashmi Pujar <rashmi.pujar1@bell.ca> | 2022-03-03 03:17:08 +0000 |
commit | deffbf64bd6f48fef477fa84d04ebb078bf00006 (patch) | |
tree | 88814a4a845e407d5609fe7ccd9ca43c53174c27 /main/src/test | |
parent | 06cd50a60832b5c7b23181145b035472bfff1ebe (diff) |
Handle exceptions around DB transcations, data integrity
Issue-ID: POLICY-3976
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: I9cdfff788d901824904bc74fdb7e2d482d28d562
Diffstat (limited to 'main/src/test')
3 files changed, 5 insertions, 2 deletions
diff --git a/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java b/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java index a22a0a07..bf35d27b 100644 --- a/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java +++ b/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java @@ -40,6 +40,8 @@ import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.onap.policy.api.main.PolicyApiApplication; +import org.onap.policy.api.main.rest.provider.statistics.ApiStatisticsManager; +import org.onap.policy.api.main.rest.provider.statistics.StatisticsReport; import org.onap.policy.api.main.rest.utils.CommonTestRestController; import org.onap.policy.common.endpoints.report.HealthCheckReport; import org.onap.policy.common.utils.coder.StandardCoder; diff --git a/main/src/test/java/org/onap/policy/api/main/rest/TestApiStatisticsManager.java b/main/src/test/java/org/onap/policy/api/main/rest/TestApiStatisticsManager.java index 48484d6e..f343e135 100644 --- a/main/src/test/java/org/onap/policy/api/main/rest/TestApiStatisticsManager.java +++ b/main/src/test/java/org/onap/policy/api/main/rest/TestApiStatisticsManager.java @@ -26,10 +26,10 @@ package org.onap.policy.api.main.rest; import static org.junit.Assert.assertEquals; -import lombok.RequiredArgsConstructor; import org.junit.Test; import org.junit.runner.RunWith; import org.onap.policy.api.main.PolicyApiApplication; +import org.onap.policy.api.main.rest.provider.statistics.ApiStatisticsManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ActiveProfiles; diff --git a/main/src/test/java/org/onap/policy/api/main/rest/TestStatisticsReport.java b/main/src/test/java/org/onap/policy/api/main/rest/TestStatisticsReport.java index 01d5a9c5..664c9591 100644 --- a/main/src/test/java/org/onap/policy/api/main/rest/TestStatisticsReport.java +++ b/main/src/test/java/org/onap/policy/api/main/rest/TestStatisticsReport.java @@ -29,6 +29,7 @@ import com.openpojo.validation.rule.impl.SetterMustExistRule; import com.openpojo.validation.test.impl.GetterTester; import com.openpojo.validation.test.impl.SetterTester; import org.junit.Test; +import org.onap.policy.api.main.rest.provider.statistics.StatisticsReport; import org.onap.policy.common.utils.test.ToStringTester; /** @@ -45,4 +46,4 @@ public class TestStatisticsReport { validator.validate(StatisticsReport.class.getPackage().getName(), new FilterClassName(StatisticsReport.class.getName())); } -} +}
\ No newline at end of file |