summaryrefslogtreecommitdiffstats
path: root/infra/translate-utils
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsalek@frinx.io>2018-04-25 10:20:59 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-04-27 06:29:58 +0200
commit4aba3123f79d21b480e9e1cb3e0cdbcf3068ba1b (patch)
treec1fffb6cface9a3ce8ea0150940a312f5f9a4518 /infra/translate-utils
parentbc0c338f8c3ad44f38b31e64076b97c5956dee2a (diff)
Collect all the updates for subtree writers
So far, when a subtree writer was registered on a list node and ModificationDiff detected 2 or more updated list items for that writer, FlatWriterRegistry just picked the first item in list, processed that one and ignored the rest. Change-Id: If66db1eaad5a3b5c35e5586f46fd83a0698e1728 Signed-off-by: Maros Marsalek <maros.mars@gmail.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/translate-utils')
-rw-r--r--infra/translate-utils/src/test/java/io/fd/honeycomb/translate/util/DataObjects.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/infra/translate-utils/src/test/java/io/fd/honeycomb/translate/util/DataObjects.java b/infra/translate-utils/src/test/java/io/fd/honeycomb/translate/util/DataObjects.java
index 77db65c5d..f3da1c767 100644
--- a/infra/translate-utils/src/test/java/io/fd/honeycomb/translate/util/DataObjects.java
+++ b/infra/translate-utils/src/test/java/io/fd/honeycomb/translate/util/DataObjects.java
@@ -69,6 +69,14 @@ public class DataObjects {
RWUtils.makeIidWildcarded(InstanceIdentifier.create(DataObject1.class).child(DataObject1ChildK.class));
InstanceIdentifier<DataObject1ChildK> INTERNALLY_KEYED_IID = InstanceIdentifier.create(DataObject1.class)
.child(DataObject1ChildK.class, new DataObject1ChildKey());
+
+ public interface DataObject1ChildKNested extends DataObject, ChildOf<DataObject1ChildK> {
+ InstanceIdentifier<DataObject1ChildK.DataObject1ChildKNested> IID = DataObject1ChildK.IID.child(DataObject1ChildK.DataObject1ChildKNested.class);
+ }
+
+ public interface DataObject1ChildKNested2 extends DataObject, ChildOf<DataObject1ChildK> {
+ InstanceIdentifier<DataObject1ChildK.DataObject1ChildKNested2> IID = DataObject1ChildK.IID.child(DataObject1ChildK.DataObject1ChildKNested2.class);
+ }
}
public static class DataObject1ChildKey implements Identifier<DataObject1ChildK> {