2 * Copyright (c) 2018 Pantheon Technologies s.r.o. 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.mdsal.binding.dom.adapter;
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;
15 public abstract class AbstractAdapterTest {
16 protected AdapterContext codec;
19 public void before() {
20 final BindingBrokerTestFactory testFactory = new BindingBrokerTestFactory();
21 testFactory.setExecutor(MoreExecutors.newDirectExecutorService());
22 final BindingTestContext testContext = testFactory.getTestContext();
24 codec = testContext.getCodec();