common code coverage increase
[sdc.git] / common / onap-tosca-datatype / src / test / java / org / onap / sdc / tosca / datatypes / model / NodeTypeTest.java
index 1f0732d..53a5f5c 100644 (file)
@@ -12,6 +12,8 @@
  * 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.
+ *
+ * Modifications copyright (c) 2019 Nokia
  */
 
 package org.onap.sdc.tosca.datatypes.model;
@@ -23,6 +25,9 @@ import org.junit.Assert;
 import org.junit.Test;
 import org.onap.sdc.tosca.services.ToscaExtensionYamlUtil;
 
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding;
+import static org.junit.Assert.assertThat;
+
 
 public class NodeTypeTest {
 
@@ -44,6 +49,11 @@ public class NodeTypeTest {
 
     }
 
+    @Test
+    public void shouldHaveValidGettersAndSetters() {
+        assertThat(NodeType.class, hasValidGettersAndSettersExcluding("normalizeInterfaces"));
+    }
+
     protected InterfaceDefinitionType chkData(Map<String, InterfaceDefinitionType> normalizeInterfacesNoEvent) {
         Assert.assertNotNull(normalizeInterfacesNoEvent);
         InterfaceDefinitionType interfaceDefinitionType = normalizeInterfacesNoEvent.get(STANDARD_INTERFACE_DEF);