diff options
Diffstat (limited to 'snmpmapper/src/test')
3 files changed, 113 insertions, 0 deletions
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 |