import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
public class DataChangeListenerRegistrationTest extends AbstractActorTest {
- private static final InMemoryDOMDataStore store = new InMemoryDOMDataStore("OPER", MoreExecutors.sameThreadExecutor());
+ private static final InMemoryDOMDataStore store = new InMemoryDOMDataStore("OPER", MoreExecutors.newDirectExecutorService());
static {
store.onGlobalContextUpdated(TestModel.createTestContext());
@Override
protected void run() {
- subject.tell(new CloseDataChangeListenerRegistration().toSerializable(), getRef());
+ subject.tell(CloseDataChangeListenerRegistration.INSTANCE, getRef());
final String out = new ExpectMsg<String>(duration("1 seconds"), "match hint") {
// do not put code outside this method, will run afterwards
@Override
protected String match(final Object in) {
- if (in.getClass().equals(CloseDataChangeListenerRegistrationReply.SERIALIZABLE_CLASS)) {
+ if (in.getClass().equals(CloseDataChangeListenerRegistrationReply.class)) {
return "match";
} else {
throw noMatch();