X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fmodel-loader.git;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fmodelloader%2Fentity%2Fcatalog%2FTestVnfImageException.java;h=793ed9a21543523415bda4b9290c16b85f9fafbb;hp=a41ddf92954807b1cc03d7dba65e74a6e9bdbf95;hb=HEAD;hpb=6e4f04afea4c2d07fdd9c15eda38438c7baeb308 diff --git a/src/test/java/org/onap/aai/modelloader/entity/catalog/TestVnfImageException.java b/src/test/java/org/onap/aai/modelloader/entity/catalog/TestVnfImageException.java index a41ddf9..793ed9a 100644 --- a/src/test/java/org/onap/aai/modelloader/entity/catalog/TestVnfImageException.java +++ b/src/test/java/org/onap/aai/modelloader/entity/catalog/TestVnfImageException.java @@ -1,5 +1,5 @@ /** - * ============LICENSE_START======================================================= + * ============LICENSE_START======================================================= * org.onap.aai * ================================================================================ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. @@ -22,12 +22,12 @@ package org.onap.aai.modelloader.entity.catalog; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; +import static org.hamcrest.MatcherAssert.assertThat; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** - * Tests for NotificationDataImpl class + * Tests for NotificationDataImpl class. * */ public class TestVnfImageException { @@ -41,8 +41,7 @@ public class TestVnfImageException { assertThat(exception.getImageId(), is(equalTo("id2"))); assertThat(exception.getResultCode().get(), is(equalTo(1))); - Exception e = new Exception("message"); - exception = new VnfImageException(e); + exception = new VnfImageException(new Exception("message")); assertThat(exception.getImageId(), is(equalTo("message"))); }