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);
}
Aggregations