From ab6f9666860bafb6d26dd462ff4e7caee52e6e03 Mon Sep 17 00:00:00 2001 From: Tomasz Golabek Date: Fri, 30 Aug 2019 10:52:41 +0200 Subject: unit tests - openecomp-be Additional junit tests for vendor-license-api-types Change-Id: I343d04f001a92d47aa411e6bda498fa772040e5b Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek --- .../openecomp-sdc-vendor-license-api/pom.xml | 7 +++++ .../vendorlicense/dao/types/ChoiceOrOtherTest.java | 32 ++++++++++++++++++++++ .../dao/types/EntitlementPoolEntityTest.java | 32 ++++++++++++++++++++++ .../dao/types/FeatureGroupEntityTest.java | 32 ++++++++++++++++++++++ .../dao/types/FeatureGroupModelTest.java | 32 ++++++++++++++++++++++ .../dao/types/LicenseAgreementEntityTest.java | 32 ++++++++++++++++++++++ .../dao/types/LicenseAgreementModelTest.java | 32 ++++++++++++++++++++++ .../dao/types/LicenseKeyGroupEntityTest.java | 32 ++++++++++++++++++++++ .../vendorlicense/dao/types/LimitEntityTest.java | 32 ++++++++++++++++++++++ .../dao/types/MultiChoiceOrOtherTest.java | 32 ++++++++++++++++++++++ .../dao/types/VendorLicenseModelEntityTest.java | 32 ++++++++++++++++++++++ .../types/xml/AggregationFunctionForXmlTest.java | 32 ++++++++++++++++++++++ .../dao/types/xml/EntitlementMetricForXmlTest.java | 32 ++++++++++++++++++++++ .../dao/types/xml/EntitlementTimeForXmlTest.java | 32 ++++++++++++++++++++++ .../dao/types/xml/LicenseKeyTypeForXmlTest.java | 32 ++++++++++++++++++++++ .../dao/types/xml/LimitForXmlTest.java | 32 ++++++++++++++++++++++ .../dao/types/xml/OperationalScopeForXmlTest.java | 32 ++++++++++++++++++++++ .../dao/types/xml/ThresholdForXmlTest.java | 32 ++++++++++++++++++++++ 18 files changed, 551 insertions(+) create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/ChoiceOrOtherTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolEntityTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/FeatureGroupEntityTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/FeatureGroupModelTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseAgreementEntityTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseAgreementModelTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseKeyGroupEntityTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LimitEntityTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/MultiChoiceOrOtherTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/VendorLicenseModelEntityTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/AggregationFunctionForXmlTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/EntitlementMetricForXmlTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/EntitlementTimeForXmlTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/LicenseKeyTypeForXmlTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/LimitForXmlTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/OperationalScopeForXmlTest.java create mode 100644 openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/ThresholdForXmlTest.java (limited to 'openecomp-be/lib') diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/pom.xml b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/pom.xml index daaf3c6f09..a621413ae1 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/pom.xml +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/pom.xml @@ -52,5 +52,12 @@ woodstox-core-asl ${woodstox.version} + + + junit + junit + ${junit.version} + test + diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/ChoiceOrOtherTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/ChoiceOrOtherTest.java new file mode 100644 index 0000000000..f5d88167f2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/ChoiceOrOtherTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class ChoiceOrOtherTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(ChoiceOrOther.class, hasValidGettersAndSettersExcluding("result")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolEntityTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolEntityTest.java new file mode 100644 index 0000000000..8f7ef4c0f1 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolEntityTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class EntitlementPoolEntityTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(EntitlementPoolEntity.class, hasValidGettersAndSettersExcluding("SPLimits", "entityType", "firstClassCitizenId", "entityPartNumber", "isoFormatExpiryDate", "isoFormatStartDate", "operationalScopeForArtifact", "thresholdForArtifact", "vendorLimits", "versionForArtifact")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/FeatureGroupEntityTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/FeatureGroupEntityTest.java new file mode 100644 index 0000000000..cdad78f7c1 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/FeatureGroupEntityTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class FeatureGroupEntityTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(FeatureGroupEntity.class, hasValidGettersAndSettersExcluding("entityType", "firstClassCitizenId", "entityType")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/FeatureGroupModelTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/FeatureGroupModelTest.java new file mode 100644 index 0000000000..41e60fbd54 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/FeatureGroupModelTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class FeatureGroupModelTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(FeatureGroupModel.class, hasValidGettersAndSettersExcluding("entityDesc", "entityId", "entityManufacturerReferenceNumber", "entityType", "entityName", "entityPartNumber")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseAgreementEntityTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseAgreementEntityTest.java new file mode 100644 index 0000000000..26449b8dfe --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseAgreementEntityTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class LicenseAgreementEntityTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(LicenseAgreementEntity.class, hasValidGettersAndSettersExcluding("entityType", "firstClassCitizenId")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseAgreementModelTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseAgreementModelTest.java new file mode 100644 index 0000000000..3dff46c036 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseAgreementModelTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class LicenseAgreementModelTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(LicenseAgreementModel.class, hasValidGettersAndSetters()); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseKeyGroupEntityTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseKeyGroupEntityTest.java new file mode 100644 index 0000000000..840831e2c6 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseKeyGroupEntityTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class LicenseKeyGroupEntityTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(LicenseKeyGroupEntity.class, hasValidGettersAndSettersExcluding("SPLimits", "entityType", "firstClassCitizenId", "isoFormatExpiryDate", "isoFormatStartDate", "operationalScopeForArtifact", "thresholdForArtifact", "typeForArtifact", "vendorLimits", "versionForArtifact")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LimitEntityTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LimitEntityTest.java new file mode 100644 index 0000000000..7d18077edb --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/LimitEntityTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class LimitEntityTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(LimitEntity.class, hasValidGettersAndSettersExcluding("entityType", "firstClassCitizenId")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/MultiChoiceOrOtherTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/MultiChoiceOrOtherTest.java new file mode 100644 index 0000000000..25fe655231 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/MultiChoiceOrOtherTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class MultiChoiceOrOtherTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(MultiChoiceOrOther.class, hasValidGettersAndSettersExcluding("results")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/VendorLicenseModelEntityTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/VendorLicenseModelEntityTest.java new file mode 100644 index 0000000000..c3330d8ba1 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/VendorLicenseModelEntityTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class VendorLicenseModelEntityTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(VendorLicenseModelEntity.class, hasValidGettersAndSettersExcluding("entityType", "firstClassCitizenId")); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/AggregationFunctionForXmlTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/AggregationFunctionForXmlTest.java new file mode 100644 index 0000000000..6dd8fb7320 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/AggregationFunctionForXmlTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types.xml; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class AggregationFunctionForXmlTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(AggregationFunctionForXml.class, hasValidGettersAndSetters()); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/EntitlementMetricForXmlTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/EntitlementMetricForXmlTest.java new file mode 100644 index 0000000000..739d0ad646 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/EntitlementMetricForXmlTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types.xml; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class EntitlementMetricForXmlTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(EntitlementMetricForXml.class, hasValidGettersAndSetters()); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/EntitlementTimeForXmlTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/EntitlementTimeForXmlTest.java new file mode 100644 index 0000000000..c4f2fe8a9f --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/EntitlementTimeForXmlTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types.xml; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class EntitlementTimeForXmlTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(EntitlementTimeForXml.class, hasValidGettersAndSetters()); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/LicenseKeyTypeForXmlTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/LicenseKeyTypeForXmlTest.java new file mode 100644 index 0000000000..fd9f93f676 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/LicenseKeyTypeForXmlTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types.xml; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class LicenseKeyTypeForXmlTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(LicenseKeyTypeForXml.class, hasValidGettersAndSetters()); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/LimitForXmlTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/LimitForXmlTest.java new file mode 100644 index 0000000000..6b334c3140 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/LimitForXmlTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types.xml; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class LimitForXmlTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(LimitForXml.class, hasValidGettersAndSetters()); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/OperationalScopeForXmlTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/OperationalScopeForXmlTest.java new file mode 100644 index 0000000000..94f0e5e25a --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/OperationalScopeForXmlTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types.xml; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class OperationalScopeForXmlTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(OperationalScopeForXml.class, hasValidGettersAndSetters()); + } +} \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/ThresholdForXmlTest.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/ThresholdForXmlTest.java new file mode 100644 index 0000000000..136c436328 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/test/java/org/openecomp/sdc/vendorlicense/dao/types/xml/ThresholdForXmlTest.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. 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.openecomp.sdc.vendorlicense.dao.types.xml; + +import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters; +import static org.junit.Assert.assertThat; + +import org.junit.Test; + +public class ThresholdForXmlTest { + @Test + public void shouldHaveValidGettersAndSetters() { + assertThat(ThresholdForXml.class, hasValidGettersAndSetters()); + } +} \ No newline at end of file -- cgit 1.2.3-korg