Adjust to yangtools-2.0.0 changes
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / entityownership / EntityOwnershipStatisticsTest.java
index d15111210b892c09440e362309779ce3c46f4b6f..652c5279ffe66509e80faad28ca1034f36abd6d4 100644 (file)
@@ -120,7 +120,7 @@ public class EntityOwnershipStatisticsTest extends AbstractActorTest {
         assertStatistics(statistics, REMOTE_MEMBER_NAME2, 0L);
 
         // Clear the owner for entity 2
-        writeNode(entityPath(ENTITY_TYPE, ENTITY_ID2), entityEntryWithOwner(ENTITY_ID2, null));
+        writeNode(entityPath(ENTITY_TYPE, ENTITY_ID2), entityEntryWithOwner(ENTITY_ID2, ""));
         statistics = ownershipStatistics.all();
         assertStatistics(statistics, LOCAL_MEMBER_NAME, 1L);
         assertStatistics(statistics, REMOTE_MEMBER_NAME1, 0L);
@@ -128,7 +128,7 @@ public class EntityOwnershipStatisticsTest extends AbstractActorTest {
 
         // Clear the owner for entity 2 again - expect no change
 
-        writeNode(entityPath(ENTITY_TYPE, ENTITY_ID2), entityEntryWithOwner(ENTITY_ID2, null));
+        writeNode(entityPath(ENTITY_TYPE, ENTITY_ID2), entityEntryWithOwner(ENTITY_ID2, ""));
         statistics = ownershipStatistics.all();
         assertStatistics(statistics, LOCAL_MEMBER_NAME, 1L);
         assertStatistics(statistics, REMOTE_MEMBER_NAME1, 0L);