summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java')
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java65
1 files changed, 15 insertions, 50 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java
index 7a42c870f5..f2fc17844f 100644
--- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/SubCategoryDefinitionTest.java
@@ -7,9 +7,9 @@
* 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.
@@ -20,58 +20,23 @@
package org.openecomp.sdc.be.model.category;
-import java.util.List;
-
import org.junit.Test;
-
+import org.assertj.core.api.Assertions;
public class SubCategoryDefinitionTest {
- private SubCategoryDefinition createTestSubject() {
- return new SubCategoryDefinition();
- }
-
-
- @Test
- public void testGetGroupings() throws Exception {
- SubCategoryDefinition testSubject;
- List<GroupingDefinition> result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getGroupings();
- }
-
-
- @Test
- public void testSetGroupings() throws Exception {
- SubCategoryDefinition testSubject;
- List<GroupingDefinition> groupingDefinitions = null;
-
- // default test
- testSubject = createTestSubject();
- testSubject.setGroupings(groupingDefinitions);
- }
-
-
- @Test
- public void testAddGrouping() throws Exception {
- SubCategoryDefinition testSubject;
- GroupingDefinition groupingDefinition = null;
-
- // default test
- testSubject = createTestSubject();
- testSubject.addGrouping(groupingDefinition);
- }
+ private SubCategoryDefinition createTestSubject() {
+ return new SubCategoryDefinition();
+ }
-
- @Test
- public void testToString() throws Exception {
- SubCategoryDefinition testSubject;
- String result;
+ @Test
+ public void testAddGrouping() throws Exception {
+ final SubCategoryDefinition testSubject;
+ final GroupingDefinition groupingDefinition = new GroupingDefinition();
- // default test
- testSubject = createTestSubject();
- result = testSubject.toString();
- }
+ // default test
+ testSubject = createTestSubject();
+ testSubject.addGrouping(groupingDefinition);
+ Assertions.assertThat(testSubject.getGroupings()).isNotNull().isNotEmpty();
+ }
}