From a0cd2159e2dbfde7613ea7dda8db1eacced4ca69 Mon Sep 17 00:00:00 2001 From: BharathS24 Date: Tue, 27 Mar 2018 19:03:40 +0530 Subject: Added snmpmapper in Mapper Commiting new Module in Mapper Change-Id: I6fe49f5bf980bfc68abca89a7494f640942fe474 Issue-ID: DCAEGEN2-338 Signed-off-by: BharathS24 --- .../org/onap/dcae/mapper/StorageExceptionTest.java | 37 ++++++++++++++++++++ .../mapper/StorageFileNotFoundExceptionTest.java | 37 ++++++++++++++++++++ .../onap/dcae/mapper/StoragePropertiesTest.java | 39 ++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 snmpmapper/src/test/java/org/onap/dcae/mapper/StorageExceptionTest.java create mode 100644 snmpmapper/src/test/java/org/onap/dcae/mapper/StorageFileNotFoundExceptionTest.java create mode 100644 snmpmapper/src/test/java/org/onap/dcae/mapper/StoragePropertiesTest.java (limited to 'snmpmapper/src/test') diff --git a/snmpmapper/src/test/java/org/onap/dcae/mapper/StorageExceptionTest.java b/snmpmapper/src/test/java/org/onap/dcae/mapper/StorageExceptionTest.java new file mode 100644 index 0000000..1f4783d --- /dev/null +++ b/snmpmapper/src/test/java/org/onap/dcae/mapper/StorageExceptionTest.java @@ -0,0 +1,37 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2018 TechMahindra +*================================================================================= +* 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.dcae.mapper; + +import static org.junit.Assert.*; + +import org.junit.Test; +import org.onap.dcae.mapper.storage.StorageException; + +public class StorageExceptionTest { + + StorageException se = new StorageException("message"); + StorageException se1 = new StorageException("message", se); + + @Test + public void test() { + + +} +} diff --git a/snmpmapper/src/test/java/org/onap/dcae/mapper/StorageFileNotFoundExceptionTest.java b/snmpmapper/src/test/java/org/onap/dcae/mapper/StorageFileNotFoundExceptionTest.java new file mode 100644 index 0000000..39fbeac --- /dev/null +++ b/snmpmapper/src/test/java/org/onap/dcae/mapper/StorageFileNotFoundExceptionTest.java @@ -0,0 +1,37 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2018 TechMahindra +*================================================================================= +* 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.dcae.mapper; + +import static org.junit.Assert.*; + +import org.junit.Test; +import org.onap.dcae.mapper.storage.StorageFileNotFoundException; + +public class StorageFileNotFoundExceptionTest { + + StorageFileNotFoundException sfnfe = new StorageFileNotFoundException("message"); + StorageFileNotFoundException sfnfe1 = new StorageFileNotFoundException("message", sfnfe); + + @Test + public void test() { + + } + +} diff --git a/snmpmapper/src/test/java/org/onap/dcae/mapper/StoragePropertiesTest.java b/snmpmapper/src/test/java/org/onap/dcae/mapper/StoragePropertiesTest.java new file mode 100644 index 0000000..64915f5 --- /dev/null +++ b/snmpmapper/src/test/java/org/onap/dcae/mapper/StoragePropertiesTest.java @@ -0,0 +1,39 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2018 TechMahindra +*================================================================================= +* 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.dcae.mapper; + +import static org.junit.Assert.assertEquals; + +import org.junit.Test; +import org.onap.dcae.mapper.storage.StorageProperties; + +public class StoragePropertiesTest { + + StorageProperties sp= new StorageProperties(); + + +@Test +public void testStorageProperties() { + + sp.setLocation("location"); + assertEquals(sp.getLocation(), "location"); + +} +} \ No newline at end of file -- cgit 1.2.3-korg