summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test
diff options
context:
space:
mode:
authorJoanna Jeremicz <joanna.jeremicz@nokia.com>2018-10-29 15:28:48 +0100
committerJoanna Jeremicz <joanna.jeremicz@nokia.com>2018-10-29 15:40:03 +0100
commitb3045d3b532fac029a689826225546fd8859be13 (patch)
tree907cb849c86ebf58b7ed7b6d6945db0a701bd339 /vid-app-common/src/test
parentb35badec9433f8c0e8cd77621c8fa36469baa27e (diff)
StackOverflowError in CategoryParameter
Change-Id: Ic07d296f4ef16032d2c363f10c824c7b3db018f4 Issue-ID: VID-339 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
Diffstat (limited to 'vid-app-common/src/test')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java b/vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java
index 04ee46436..6ac7b5447 100644
--- a/vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java
+++ b/vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java
@@ -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);