Package org.teiid.common.queue

Examples of org.teiid.common.queue.FakeWorkManager


        txn = Mockito.mock(javax.transaction.Transaction.class);
        Mockito.stub(tm.getTransaction()).toReturn(txn);
        Mockito.stub(tm.suspend()).toReturn(txn);
        server.setXaTerminator(xaTerminator);
        server.setTransactionManager(tm);
        server.setWorkManager(new FakeWorkManager());
    }
View Full Code Here


public class FakeTransactionService extends TransactionServerImpl {

  public FakeTransactionService() {
    this.setTransactionManager(SimpleMock.createSimpleMock(TransactionManager.class));
    this.setXaTerminator(SimpleMock.createSimpleMock(XATerminator.class));
    this.setWorkManager(new FakeWorkManager());
  }
View Full Code Here

TOP

Related Classes of org.teiid.common.queue.FakeWorkManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.