use of org.opendaylight.controller.sal.binding.test.util.BindingBrokerTestFactory in project controller by opendaylight.
the class AbstractDataServiceTest method setUp.
@Before
public void setUp() {
ListeningExecutorService executor = MoreExecutors.newDirectExecutorService();
BindingBrokerTestFactory factory = new BindingBrokerTestFactory();
factory.setExecutor(executor);
factory.setStartWithParsedSchema(getStartWithSchema());
testContext = factory.getTestContext();
testContext.start();
}
use of org.opendaylight.controller.sal.binding.test.util.BindingBrokerTestFactory in project controller by opendaylight.
the class CrossBrokerMountPointTest method setup.
@Before
public void setup() {
final BindingBrokerTestFactory testFactory = new BindingBrokerTestFactory();
testFactory.setExecutor(MoreExecutors.newDirectExecutorService());
testFactory.setStartWithParsedSchema(true);
testContext = testFactory.getTestContext();
testContext.start();
bindingMountPointService = testContext.getBindingMountPointService();
domMountPointService = testContext.getDomMountProviderService();
// biRpcInvoker = testContext.getDomRpcInvoker();
assertNotNull(bindingMountPointService);
assertNotNull(domMountPointService);
// flowService = MessageCapturingFlowService.create(baRpcRegistry);
}
use of org.opendaylight.controller.sal.binding.test.util.BindingBrokerTestFactory in project controller by opendaylight.
the class CrossBrokerRpcTest method setup.
@Before
public void setup() {
BindingBrokerTestFactory testFactory = new BindingBrokerTestFactory();
testFactory.setExecutor(MoreExecutors.newDirectExecutorService());
testFactory.setStartWithParsedSchema(true);
testContext = testFactory.getTestContext();
testContext.start();
providerRegistry = testContext.getBindingRpcRegistry();
provisionRegistry = testContext.getDomRpcRegistry();
biRpcInvoker = testContext.getDomRpcInvoker();
assertNotNull(providerRegistry);
assertNotNull(provisionRegistry);
knockService = MessageCapturingFlowService.create(providerRegistry);
}
use of org.opendaylight.controller.sal.binding.test.util.BindingBrokerTestFactory in project controller by opendaylight.
the class DOMRpcServiceTestBugfix560 method setUp.
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
final BindingBrokerTestFactory testFactory = new BindingBrokerTestFactory();
testFactory.setExecutor(MoreExecutors.newDirectExecutorService());
testFactory.setStartWithParsedSchema(true);
testContext = testFactory.getTestContext();
testContext.start();
domMountPointService = testContext.getDomMountProviderService();
bindingMountPointService = testContext.getBindingMountPointService();
assertNotNull(domMountPointService);
final YangModuleInfo moduleInfo = BindingReflections.getModuleInfo(OpendaylightTestRpcServiceService.class);
assertNotNull(moduleInfo);
schemaContext = YangParserTestUtils.parseYangSources(StatementParserMode.DEFAULT_MODE, null, YangTextSchemaSource.delegateForByteSource(RevisionSourceIdentifier.create(moduleInfo.getName().getLocalName(), moduleInfo.getName().getRevision()), moduleInfo.getYangTextByteSource()));
}
Aggregations