diff options
author | JulienBe <julien.bertozzi@intl.att.com> | 2020-06-17 16:53:55 +0200 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2020-06-18 05:41:13 +0000 |
commit | 135e9ebdc84ebe58d3ff338d439631d45eb5f01e (patch) | |
tree | c0c626c36a5c25612be0a3b4ec7a23e7c0c95e26 /common/onap-tosca-datatype/src/test | |
parent | 841d054f6bf5231c96abf1e91e1715c02809046a (diff) |
create tests for PropertyTypeExt.java and remove unsused method
Issue-ID: SDC-3124
Change-Id: I5d3baeeff23c0003952eabc39a5f9dd296dd7c39
Signed-off-by: JulienBe <julien.bertozzi@intl.att.com>
Diffstat (limited to 'common/onap-tosca-datatype/src/test')
-rw-r--r-- | common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/heatextend/PropertyTypeExtTest.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/heatextend/PropertyTypeExtTest.java b/common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/heatextend/PropertyTypeExtTest.java new file mode 100644 index 0000000000..0e6c1ff999 --- /dev/null +++ b/common/onap-tosca-datatype/src/test/java/org/onap/sdc/tosca/datatypes/model/heatextend/PropertyTypeExtTest.java @@ -0,0 +1,44 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2020 AT&T. All rights reserved. + * ================================================================================ + * 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.sdc.tosca.datatypes.model.heatextend; + +import org.junit.jupiter.api.Test; + +import java.util.Map; + +import static org.junit.jupiter.api.Assertions.*; + +public class PropertyTypeExtTest { + + @Test + public void initializeProperMapping() { + Map<String, PropertyTypeExt> map = PropertyTypeExt.initializeMapping(); + assertNotNull(map); + assertEquals(1, map.size()); + assertEquals(PropertyTypeExt.JSON, map.get("json")); + } + + @Test + public void getDisplayName() { + assertEquals("json", PropertyTypeExt.JSON.getDisplayName()); + } + +} |