- Mockito.doReturn(mock(GeneratedClassLoadingStrategy.class)).when(this.extension).getClassLoadingStrategy();
- Mockito.doReturn(this.ribSupport).when(this.extension).getRIBSupport(any(TablesKey.class));
- final NodeIdentifier nii = new NodeIdentifier(QName.create("test").intern());
- Mockito.doReturn(nii).when(this.ribSupport).routeAttributesIdentifier();
- Mockito.doReturn(ImmutableSet.of()).when(this.ribSupport).cacheableAttributeObjects();
- final ChoiceNode choiceNode = mock(ChoiceNode.class);
- Mockito.doReturn(choiceNode).when(this.ribSupport).emptyRoutes();
- Mockito.doReturn(nii).when(choiceNode).getIdentifier();
- Mockito.doReturn(QName.create("test").intern()).when(choiceNode).getNodeType();
- Mockito.doReturn(this.domTx).when(this.domDataBroker).createTransactionChain(any());
+ doReturn(mock(GeneratedClassLoadingStrategy.class)).when(this.extension).getClassLoadingStrategy();
+ doReturn(this.ribSupport).when(this.extension).getRIBSupport(any(TablesKey.class));
+ final NodeIdentifier nii = new NodeIdentifier(QName.create("", "test").intern());
+ doReturn(nii).when(this.ribSupport).routeAttributesIdentifier();
+ doReturn(ImmutableSet.of()).when(this.ribSupport).cacheableAttributeObjects();
+ final MapEntryNode emptyTable = mock(MapEntryNode.class);
+ doReturn(emptyTable).when(this.ribSupport).emptyTable();
+ final NodeIdentifierWithPredicates niie = NodeIdentifierWithPredicates.of(Rib.QNAME,
+ QName.create("", "test").intern(), "t");
+ doReturn(niie).when(emptyTable).getIdentifier();
+ doReturn(QName.create("", "test").intern()).when(emptyTable).getNodeType();
+ doReturn(this.domTx).when(this.domDataBroker).createMergingTransactionChain(any());