use of com.ctrip.framework.apollo.tracer.spi.MessageProducer in project apollo by ctripcorp.
the class BaseIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
MessageProducer someProducer = mock(MessageProducer.class);
MockMessageProducerManager.setProducer(someProducer);
Transaction someTransaction = mock(Transaction.class);
when(someProducer.newTransaction(anyString(), anyString())).thenReturn(someTransaction);
}
Aggregations