common code coverage increase
[sdc.git] / common / onap-tosca-datatype / src / test / java / org / onap / sdc / tosca / datatypes / model / ServiceTemplateTest.java
index 37be2e4..70f9364 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;
@@ -25,6 +27,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.hamcrest.MatcherAssert.assertThat;
+
 public class ServiceTemplateTest {
 
     private static final String INTERFACE_NO_OPER = "amdocs.interfaces.interfaceNoOper";
@@ -61,4 +66,10 @@ public class ServiceTemplateTest {
         }
 
     }
+
+    @Test
+    public void shouldHaveValidGettersAndSetters() {
+        assertThat(ServiceTemplate.class,
+                hasValidGettersAndSettersExcluding("imports", "normalizeInterfaceTypes"));
+    }
 }