本文整理汇总了Java中org.apache.activemq.Message类的典型用法代码示例。如果您正苦于以下问题:Java Message类的具体用法?Java Message怎么用?Java Message使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Message类属于org.apache.activemq包,在下文中一共展示了Message类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: update_whenSuiteFinishForced_expectMessageSent
import org.apache.activemq.Message; //导入依赖的package包/类
@Test
public void update_whenSuiteFinishForced_expectMessageSent() throws Exception {
when(suiteIndexWrapper.get()).thenReturn(Mockito.mock(Suite.class));
tested.enforceSuiteFinish();
tested.update(null, null);
verify(resultsProducer, times(1)).send(Matchers.<Message>any());
}
示例2: RSSThreadWorker
import org.apache.activemq.Message; //导入依赖的package包/类
public RSSThreadWorker(Message msg, DBObject feedDB, DBCollection rssColl,
DBCollection entriesColl, Connection conn, String subject) {
this.msg = msg;
this.feedDB = feedDB;
this.rssColl = rssColl;
this.entriesColl = entriesColl;
this.conn = conn;
this.subject = subject;
}
示例3: sendFailedMessage_expectFailMessageSent
import org.apache.activemq.Message; //导入依赖的package包/类
@Test
public void sendFailedMessage_expectFailMessageSent() throws Exception {
when(suiteIndexWrapper.get()).thenReturn(Mockito.mock(Suite.class));
tested.sendFailMessage(Collections.singletonList("Error"));
verify(resultsProducer, times(1)).send(Matchers.<Message>any());
}