X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fmodel-loader.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fmodelloader%2Fnotification%2FDownloadFailureException.java;fp=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fmodelloader%2Fnotification%2FDistributionStatusMsgTest.java;h=73a191a325fff3c762808dbefb1a9e18c65cd151;hp=852e77fb2bbb3ae189e79cd7d1c48ee56367a6cf;hb=7b1f813441f94261f43ec4f5bb0944ad2570fbdf;hpb=4dd316529148d07059d844197cdb676806bdc0c6 diff --git a/src/test/java/org/onap/aai/modelloader/notification/DistributionStatusMsgTest.java b/src/main/java/org/onap/aai/modelloader/notification/DownloadFailureException.java similarity index 58% rename from src/test/java/org/onap/aai/modelloader/notification/DistributionStatusMsgTest.java rename to src/main/java/org/onap/aai/modelloader/notification/DownloadFailureException.java index 852e77f..73a191a 100644 --- a/src/test/java/org/onap/aai/modelloader/notification/DistributionStatusMsgTest.java +++ b/src/main/java/org/onap/aai/modelloader/notification/DownloadFailureException.java @@ -1,40 +1,38 @@ -/** - * ============LICENSE_START========================================== - * org.onap.aai - * =================================================================== - * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. - * Copyright © 2017-2018 Amdocs - * =================================================================== - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END============================================ - */ -package org.onap.aai.modelloader.notification; - -import org.junit.Assert; -import org.junit.Test; -import org.openecomp.sdc.utils.DistributionStatusEnum; - -public class DistributionStatusMsgTest { - - @Test - public void testEntireClass(){ - DistributionStatusMsg statusMsg = new DistributionStatusMsg(DistributionStatusEnum.DEPLOY_OK, "id-1", - "consumer-1", "http://dummyurl"); - - Assert.assertEquals(statusMsg.getStatus(), DistributionStatusEnum.DEPLOY_OK); - Assert.assertEquals(statusMsg.getDistributionID(), "id-1"); - Assert.assertEquals(statusMsg.getConsumerID(), "consumer-1"); - Assert.assertEquals(statusMsg.getArtifactURL(), "http://dummyurl"); - Assert.assertNotNull(statusMsg.getTimestamp()); - } -} +/** + * ============LICENSE_START========================================== + * org.onap.aai + * =================================================================== + * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright © 2017-2018 Amdocs + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ +package org.onap.aai.modelloader.notification; + +/** + * Failure to download a distribution. + */ +class DownloadFailureException extends Exception { + + private static final long serialVersionUID = 1L; + + /** + * Constructor for an instance of this exception with just a message. + * + * @param message information about the exception + */ + DownloadFailureException(String message) { + super(message); + } +}