Deprecate all MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / sal / binding / test / AbstractDataServiceTest.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, 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.binding.test;
9
10 import com.google.common.util.concurrent.ListeningExecutorService;
11 import com.google.common.util.concurrent.MoreExecutors;
12 import org.junit.Before;
13 import org.opendaylight.controller.sal.binding.test.util.BindingBrokerTestFactory;
14 import org.opendaylight.controller.sal.binding.test.util.BindingTestContext;
15
16 @Deprecated
17 public abstract class AbstractDataServiceTest {
18
19     protected BindingTestContext testContext;
20
21     @Before
22     public void setUp() {
23         ListeningExecutorService executor = MoreExecutors.newDirectExecutorService();
24         BindingBrokerTestFactory factory = new BindingBrokerTestFactory();
25         factory.setExecutor(executor);
26         factory.setStartWithParsedSchema(getStartWithSchema());
27         testContext = factory.getTestContext();
28         testContext.start();
29     }
30
31     protected boolean getStartWithSchema() {
32         return true;
33     }
34 }