diff options
Diffstat (limited to 'champ-lib/champ-core/src/test/java/org/onap/aai/champcore/event/AbstractLoggingChampGraphTest.java')
-rw-r--r-- | champ-lib/champ-core/src/test/java/org/onap/aai/champcore/event/AbstractLoggingChampGraphTest.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/champ-lib/champ-core/src/test/java/org/onap/aai/champcore/event/AbstractLoggingChampGraphTest.java b/champ-lib/champ-core/src/test/java/org/onap/aai/champcore/event/AbstractLoggingChampGraphTest.java index 208d357..b9061c2 100644 --- a/champ-lib/champ-core/src/test/java/org/onap/aai/champcore/event/AbstractLoggingChampGraphTest.java +++ b/champ-lib/champ-core/src/test/java/org/onap/aai/champcore/event/AbstractLoggingChampGraphTest.java @@ -596,10 +596,12 @@ public class AbstractLoggingChampGraphTest { ChampIndexNotExistsException { // Create an index object and store it in the graph. + List<String> fields = new ArrayList<String>(); + fields.add("myField"); ChampObjectIndex objIndex = ChampObjectIndex.create() .ofName("myIndex") .onType("type") - .forField("myField") + .forFields(fields) .build(); testGraph.storeObjectIndex(objIndex); @@ -650,10 +652,12 @@ public class AbstractLoggingChampGraphTest { testGraph.returnNulls(); // Create an index object and store it in the graph. + List<String> fields = new ArrayList<String>(); + fields.add("myField"); ChampObjectIndex objIndex = ChampObjectIndex.create() .ofName("myIndex") .onType("type") - .forField("myField") + .forFields(fields) .build(); testGraph.storeObjectIndex(objIndex); @@ -964,10 +968,12 @@ public class AbstractLoggingChampGraphTest { public Optional<ChampObjectIndex> retrieveObjectIndex(String indexName) { if(!returnNulls) { + List<String> fields = new ArrayList<String>(); + fields.add("doesnt matter"); return Optional.of(ChampObjectIndex.create() .ofName(indexName) .onType("doesnt matter") - .forField("doesnt matter") + .forFields(fields) .build()); } else { return Optional.empty(); @@ -1065,6 +1071,12 @@ public class AbstractLoggingChampGraphTest { public void rollbackTransaction(ChampTransaction transaction) { // Not used by any tests. } + + @Override + public void createDefaultIndexes() { + // TODO Auto-generated method stub + + } } private class InMemoryPublisher implements EventPublisher { |