2 * Copyright (c) 2018 Red Hat, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.sal.restconf.impl.test.incubate;
10 import java.util.concurrent.ExecutionException;
11 import javax.inject.Inject;
12 import org.junit.Rule;
13 import org.junit.Test;
14 import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
15 import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule;
16 import org.opendaylight.mdsal.binding.api.DataBroker;
19 * Test for {@link InMemoryMdsalModule}.
21 * <p>This will be removed when the local {@link InMemoryMdsalModule} incubating here
22 * in netconf will be replaced by the one from mdsal.
24 * @author Michael Vorburger.ch
26 public class InMemoryMdsalModuleTest {
28 public @Rule GuiceRule guice = new GuiceRule(InMemoryMdsalModule.class, AnnotationsModule.class);
30 @Inject DataBroker dataBroker;
32 @Test public void testDataBroker() throws InterruptedException, ExecutionException {
33 dataBroker.newReadWriteTransaction().commit().get();