6e01ecd45702e0b238ff5e793018a92167b92229
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / incubate / InMemoryMdsalModuleTest.java
1 /*
2  * Copyright (c) 2018 Red Hat, Inc. and others. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.sal.restconf.impl.test.incubate;
9
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;
17
18 /**
19  * Test for {@link InMemoryMdsalModule}.
20  *
21  * <p>This will be removed when the local {@link InMemoryMdsalModule} incubating here
22  * in netconf will be replaced by the one from mdsal.
23  *
24  * @author Michael Vorburger.ch
25  */
26 public class InMemoryMdsalModuleTest {
27
28     public @Rule GuiceRule guice = new GuiceRule(InMemoryMdsalModule.class, AnnotationsModule.class);
29
30     @Inject DataBroker dataBroker;
31
32     @Test public void testDataBroker() throws InterruptedException, ExecutionException {
33         dataBroker.newReadWriteTransaction().commit().get();
34     }
35 }