Search in sources :

Example 1 with DataBrokerFailuresImpl

use of org.opendaylight.mdsal.binding.testutils.DataBrokerFailuresImpl in project mdsal by opendaylight.

the class TransactionAdapterTest method beforeTest.

@Before
public void beforeTest() throws Exception {
    setup();
    testableDataBroker = new DataBrokerFailuresImpl(getDataBroker());
    managedNewTransactionRunner = createManagedNewTransactionRunnerToTest(testableDataBroker);
}
Also used : DataBrokerFailuresImpl(org.opendaylight.mdsal.binding.testutils.DataBrokerFailuresImpl) Before(org.junit.Before)

Example 2 with DataBrokerFailuresImpl

use of org.opendaylight.mdsal.binding.testutils.DataBrokerFailuresImpl in project mdsal by opendaylight.

the class ManagedNewTransactionRunnerImplTest method beforeTest.

@Before
public void beforeTest() throws Exception {
    setup();
    testableDataBroker = new DataBrokerFailuresImpl(getDataBroker());
    managedNewTransactionRunner = createManagedNewTransactionRunnerToTest(testableDataBroker);
}
Also used : DataBrokerFailuresImpl(org.opendaylight.mdsal.binding.testutils.DataBrokerFailuresImpl) Before(org.junit.Before)

Example 3 with DataBrokerFailuresImpl

use of org.opendaylight.mdsal.binding.testutils.DataBrokerFailuresImpl in project genius by opendaylight.

the class DataBrokerFailuresModule method configure.

@Override
protected void configure() {
    DataBrokerFailuresImpl testableDataBroker = new DataBrokerFailuresImpl(realDataBroker);
    bind(DataBroker.class).toInstance(testableDataBroker);
    // bind(DataBroker.class).annotatedWith(Reference.class).toInstance(testableDataBroker);
    bind(DataBrokerFailures.class).toInstance(testableDataBroker);
}
Also used : DataBrokerFailures(org.opendaylight.mdsal.binding.testutils.DataBrokerFailures) DataBrokerFailuresImpl(org.opendaylight.mdsal.binding.testutils.DataBrokerFailuresImpl) DataBroker(org.opendaylight.mdsal.binding.api.DataBroker)

Aggregations

DataBrokerFailuresImpl (org.opendaylight.mdsal.binding.testutils.DataBrokerFailuresImpl)3 Before (org.junit.Before)2 DataBroker (org.opendaylight.mdsal.binding.api.DataBroker)1 DataBrokerFailures (org.opendaylight.mdsal.binding.testutils.DataBrokerFailures)1