本文整理汇总了Java中org.springframework.jms.core.MessagePostProcessor.postProcessMessage方法的典型用法代码示例。如果您正苦于以下问题:Java MessagePostProcessor.postProcessMessage方法的具体用法?Java MessagePostProcessor.postProcessMessage怎么用?Java MessagePostProcessor.postProcessMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.jms.core.MessagePostProcessor
的用法示例。
在下文中一共展示了MessagePostProcessor.postProcessMessage方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testStringProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testStringProperty() throws JMSException {
MessagePostProcessor processor = createProcessor("key", "value");
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setStringProperty("key", "value");
}
示例2: testIntProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testIntProperty() throws JMSException {
MessagePostProcessor processor = createProcessor("key", 1);
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setIntProperty("key", 1);
}
示例3: testLongProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testLongProperty() throws JMSException {
MessagePostProcessor processor = createProcessor("key", 1L);
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setLongProperty("key", 1L);
}
示例4: testShortProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testShortProperty() throws JMSException {
MessagePostProcessor processor = createProcessor("key", (short) 1);
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setShortProperty("key", (short) 1);
}
示例5: testByteProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testByteProperty() throws JMSException {
MessagePostProcessor processor = createProcessor("key", (byte) 1);
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setByteProperty("key", (byte) 1);
}
示例6: testBooleanProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testBooleanProperty() throws JMSException {
MessagePostProcessor processor = createProcessor("key", true);
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setBooleanProperty("key", true);
}
示例7: testFloatProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testFloatProperty() throws JMSException {
MessagePostProcessor processor = createProcessor("key", (float) 1.5);
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setFloatProperty("key", (float) 1.5);
}
示例8: testObjectProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testObjectProperty() throws JMSException {
Object object = new Object();
MessagePostProcessor processor = createProcessor("key", object);
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setObjectProperty("key", object);
}
示例9: testDoubleProperty
import org.springframework.jms.core.MessagePostProcessor; //导入方法依赖的package包/类
@Test
public void testDoubleProperty() throws JMSException {
MessagePostProcessor processor = createProcessor("key", 1.5);
Message message = mock(Message.class);
processor.postProcessMessage(message);
verify(message).setDoubleProperty("key", 1.5);
}