Convert DCL tests to use DTCL
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / md / sal / binding / impl / test / Bug4513Test.java
index 82da427..4a84c31 100644 (file)
@@ -17,14 +17,11 @@ import java.util.Collection;
 import org.junit.Test;
 import org.mockito.ArgumentCaptor;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.controller.md.sal.binding.api.DataChangeListener;
 import org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener;
 import org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier;
 import org.opendaylight.controller.md.sal.binding.api.DataTreeModification;
 import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
 import org.opendaylight.controller.md.sal.binding.test.AbstractDataBrokerTest;
-import org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker;
-import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeEvent;
 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.listener.rev150825.ListenerTest;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.listener.rev150825.ListenerTestBuilder;
@@ -38,25 +35,6 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
  * Homogeneous composite key is used homogeneous composite key is used.
  */
 public class Bug4513Test extends AbstractDataBrokerTest {
-    @SuppressWarnings({ "rawtypes", "unchecked" })
-    @Test
-    public void testDataChangeListener() throws Exception {
-        DataChangeListener listener = mock(DataChangeListener.class);
-        InstanceIdentifier<ListItem> wildCard = InstanceIdentifier.builder(ListenerTest.class)
-                .child(ListItem.class).build();
-        ListenerRegistration<DataChangeListener> reg = getDataBroker().registerDataChangeListener(
-                LogicalDatastoreType.OPERATIONAL, wildCard, listener, AsyncDataBroker.DataChangeScope.SUBTREE);
-
-        final ListItem item = writeListItem();
-
-        ArgumentCaptor<AsyncDataChangeEvent> captor = ArgumentCaptor.forClass(AsyncDataChangeEvent.class);
-
-        verify(listener, timeout(100)).onDataChanged(captor.capture());
-
-        AsyncDataChangeEvent event = captor.getValue();
-        assertEquals("createdData", 1, event.getCreatedData().size());
-        assertEquals("ListItem", item, event.getCreatedData().values().iterator().next());
-    }
 
     @SuppressWarnings({ "rawtypes", "unchecked" })
     @Test

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.