Correct ActionProviderService method definition
[mdsal.git] / binding / mdsal-binding-dom-adapter / src / test / java / org / opendaylight / mdsal / binding / dom / adapter / AbstractAdapterTest.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies s.r.o. 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.mdsal.binding.dom.adapter;
9
10 import com.google.common.util.concurrent.MoreExecutors;
11 import org.junit.Before;
12 import org.opendaylight.mdsal.binding.dom.adapter.test.util.BindingBrokerTestFactory;
13 import org.opendaylight.mdsal.binding.dom.adapter.test.util.BindingTestContext;
14
15 public abstract class AbstractAdapterTest {
16     protected AdapterContext codec;
17
18     @Before
19     public void before() {
20         final BindingBrokerTestFactory testFactory = new BindingBrokerTestFactory();
21         testFactory.setExecutor(MoreExecutors.newDirectExecutorService());
22         final BindingTestContext testContext = testFactory.getTestContext();
23         testContext.start();
24         codec = testContext.getCodec();
25     }
26 }