summaryrefslogtreecommitdiffstats
path: root/infra/it
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-10-19 15:32:57 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-10-20 14:20:55 +0000
commit85fd3da7efba703d473c8120c1680b65be28f565 (patch)
tree706a6cf95318412ba0e8d28f928daccb7357c6e8 /infra/it
parentdb9ce3d32c794b0cfa78fc5b3c8d5efcd0bd4532 (diff)
HONEYCOMB-261 Make ModificationDiff schema aware
to check presence statement on containers for starters + update all checks in ModificationDiff to be performed on schema instead of data Change-Id: I6ec1a0f9e1ca821ef9f6835072d075dd0994bdb6 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'infra/it')
-rw-r--r--infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/HoneycombWriteInfraTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/HoneycombWriteInfraTest.java b/infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/HoneycombWriteInfraTest.java
index fe679d14f..12ae6568d 100644
--- a/infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/HoneycombWriteInfraTest.java
+++ b/infra/it/it-test/src/test/java/io/fd/honeycomb/data/impl/HoneycombWriteInfraTest.java
@@ -134,7 +134,7 @@ public class HoneycombWriteInfraTest extends AbstractInfraTest {
@Test
public void testWriteEmptyNonPresenceContainer() throws Exception {
final ModifiableDataTreeDelegator modifiableDataTreeDelegator =
- new ModifiableDataTreeDelegator(serializer, dataTree, writerRegistry, contextBroker);
+ new ModifiableDataTreeDelegator(serializer, dataTree, schemaContext, writerRegistry, contextBroker);
final DataModification dataModification = modifiableDataTreeDelegator.newModification();
final SimpleContainer data = new SimpleContainerBuilder()
@@ -153,7 +153,7 @@ public class HoneycombWriteInfraTest extends AbstractInfraTest {
@Test
public void testWriteEverything() throws Exception {
final ModifiableDataTreeDelegator modifiableDataTreeDelegator =
- new ModifiableDataTreeDelegator(serializer, dataTree, writerRegistry, contextBroker);
+ new ModifiableDataTreeDelegator(serializer, dataTree, schemaContext, writerRegistry, contextBroker);
final DataModification dataModification = modifiableDataTreeDelegator.newModification();
// Now write everything we can
@@ -245,7 +245,7 @@ public class HoneycombWriteInfraTest extends AbstractInfraTest {
@Test
public void testDeletes() throws Exception {
final ModifiableDataTreeDelegator modifiableDataTreeDelegator =
- new ModifiableDataTreeDelegator(serializer, dataTree, writerRegistry, contextBroker);
+ new ModifiableDataTreeDelegator(serializer, dataTree, schemaContext, writerRegistry, contextBroker);
DataModification dataModification = modifiableDataTreeDelegator.newModification();
// Now write everything we can
@@ -458,7 +458,7 @@ public class HoneycombWriteInfraTest extends AbstractInfraTest {
@Test
public void testWriteAndDeleteInTx() throws Exception {
final ModifiableDataTreeDelegator modifiableDataTreeDelegator =
- new ModifiableDataTreeDelegator(serializer, dataTree, writerRegistry, contextBroker);
+ new ModifiableDataTreeDelegator(serializer, dataTree, schemaContext, writerRegistry, contextBroker);
final DataModification dataModification = modifiableDataTreeDelegator.newModification();
// Now write everything we can
@@ -479,7 +479,7 @@ public class HoneycombWriteInfraTest extends AbstractInfraTest {
.build();
final ModifiableDataTreeDelegator modifiableDataTreeDelegator =
- new ModifiableDataTreeDelegator(serializer, dataTree, writerRegistry, contextBroker);
+ new ModifiableDataTreeDelegator(serializer, dataTree, schemaContext, writerRegistry, contextBroker);
final ContainerWithChoice containerWithChoice =
new ContainerWithChoiceBuilder().setContainerFromGrouping(getContainerFromGrouping()).build();