Search in sources :

Example 1 with TxNamespaceHandler

use of org.apache.aries.transaction.parsing.TxNamespaceHandler in project aries by apache.

the class BaseNameSpaceHandlerSetup method setUp.

@Before
public void setUp() throws InvalidSyntaxException {
    control = EasyMock.createControl();
    b = control.createMock(Bundle.class);
    TransactionManager tm = control.createMock(TransactionManager.class);
    Coordinator coordinator = control.createMock(Coordinator.class);
    control.replay();
    namespaceHandler = new TxNamespaceHandler();
    namespaceHandler.setTm(tm);
    namespaceHandler.setCoordinator(coordinator);
    String[] namespaces = new String[] { "http://aries.apache.org/xmlns/transactions/v2.0.0" };
    nhri = new DummyNamespaceHandlerRegistry();
    nhri.addNamespaceHandlers(namespaces, namespaceHandler);
}
Also used : Bundle(org.osgi.framework.Bundle) TransactionManager(javax.transaction.TransactionManager) TxNamespaceHandler(org.apache.aries.transaction.parsing.TxNamespaceHandler) Coordinator(org.osgi.service.coordinator.Coordinator) Before(org.junit.Before)

Aggregations

TransactionManager (javax.transaction.TransactionManager)1 TxNamespaceHandler (org.apache.aries.transaction.parsing.TxNamespaceHandler)1 Before (org.junit.Before)1 Bundle (org.osgi.framework.Bundle)1 Coordinator (org.osgi.service.coordinator.Coordinator)1