Search in sources :

Example 1 with DOMStoreTransaction

use of org.opendaylight.mdsal.dom.spi.store.DOMStoreTransaction in project controller by opendaylight.

the class TransactionChainProxyTest method testNewReadWriteTransaction.

@SuppressWarnings("resource")
@Test
public void testNewReadWriteTransaction() {
    DOMStoreTransaction dst = new TransactionChainProxy(mockComponentFactory, historyId).newReadWriteTransaction();
    Assert.assertTrue(dst instanceof DOMStoreReadWriteTransaction);
}
Also used : DOMStoreTransaction(org.opendaylight.mdsal.dom.spi.store.DOMStoreTransaction) DOMStoreReadWriteTransaction(org.opendaylight.mdsal.dom.spi.store.DOMStoreReadWriteTransaction) Test(org.junit.Test)

Example 2 with DOMStoreTransaction

use of org.opendaylight.mdsal.dom.spi.store.DOMStoreTransaction in project controller by opendaylight.

the class TransactionChainProxyTest method testNewReadOnlyTransaction.

@SuppressWarnings("resource")
@Test
public void testNewReadOnlyTransaction() {
    DOMStoreTransaction dst = new TransactionChainProxy(mockComponentFactory, historyId).newReadOnlyTransaction();
    Assert.assertTrue(dst instanceof DOMStoreReadTransaction);
}
Also used : DOMStoreTransaction(org.opendaylight.mdsal.dom.spi.store.DOMStoreTransaction) DOMStoreReadTransaction(org.opendaylight.mdsal.dom.spi.store.DOMStoreReadTransaction) Test(org.junit.Test)

Example 3 with DOMStoreTransaction

use of org.opendaylight.mdsal.dom.spi.store.DOMStoreTransaction in project controller by opendaylight.

the class TransactionChainProxyTest method testNewWriteOnlyTransaction.

@SuppressWarnings("resource")
@Test
public void testNewWriteOnlyTransaction() {
    DOMStoreTransaction dst = new TransactionChainProxy(mockComponentFactory, historyId).newWriteOnlyTransaction();
    Assert.assertTrue(dst instanceof DOMStoreWriteTransaction);
}
Also used : DOMStoreTransaction(org.opendaylight.mdsal.dom.spi.store.DOMStoreTransaction) DOMStoreWriteTransaction(org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)3 DOMStoreTransaction (org.opendaylight.mdsal.dom.spi.store.DOMStoreTransaction)3 DOMStoreReadTransaction (org.opendaylight.mdsal.dom.spi.store.DOMStoreReadTransaction)1 DOMStoreReadWriteTransaction (org.opendaylight.mdsal.dom.spi.store.DOMStoreReadWriteTransaction)1 DOMStoreWriteTransaction (org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction)1