StackOverflowError in CategoryParameter 97/71397/1
authorJoanna Jeremicz <joanna.jeremicz@nokia.com>
Mon, 29 Oct 2018 14:28:48 +0000 (15:28 +0100)
committerJoanna Jeremicz <joanna.jeremicz@nokia.com>
Mon, 29 Oct 2018 14:40:03 +0000 (15:40 +0100)
Change-Id: Ic07d296f4ef16032d2c363f10c824c7b3db018f4
Issue-ID: VID-339
Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java

index 04ee464..6ac7b54 100644 (file)
@@ -239,10 +239,11 @@ public class CategoryParameterServiceImplTest {
         CategoryParameterOptionRep optionRepExisting = new CategoryParameterOptionRep(APP_ID_VID, OPTION_NAME);
 
         CategoryParameter categoryParameter = createCategoryParameter(CATEGORY_NAME, true);
+        CategoryParameter anotherCategoryParameter = createCategoryParameter(CATEGORY_NAME, true);
         categoryParameter.getOptions().add(
-            new CategoryParameterOption(APP_ID_VID, UNIQUE_OPTION_NAME, categoryParameter));
+            new CategoryParameterOption(APP_ID_VID, UNIQUE_OPTION_NAME, anotherCategoryParameter));
         categoryParameter.getOptions().add(
-            new CategoryParameterOption(APP_ID_SDC, OPTION_NAME, categoryParameter));
+            new CategoryParameterOption(APP_ID_SDC, OPTION_NAME, anotherCategoryParameter));
         List<CategoryParameter> aList = createCategoryParametersList(categoryParameter);
 
         doReturn(aList).when(dataAccessService).getList(CategoryParameter.class, QUERY_STRING_FOR_CATEGORY_NAME, null, null);