当前位置: 首页>>代码示例>>Java>>正文


Java MessagePostProcessor.postProcessMessage方法代码示例

本文整理汇总了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");
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:8,代码来源:PropertyMessagePostProcessorTest.java

示例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);
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:8,代码来源:PropertyMessagePostProcessorTest.java

示例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);
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:8,代码来源:PropertyMessagePostProcessorTest.java

示例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);
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:8,代码来源:PropertyMessagePostProcessorTest.java

示例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);
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:8,代码来源:PropertyMessagePostProcessorTest.java

示例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);
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:8,代码来源:PropertyMessagePostProcessorTest.java

示例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);
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:8,代码来源:PropertyMessagePostProcessorTest.java

示例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);
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:9,代码来源:PropertyMessagePostProcessorTest.java

示例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);
}
 
开发者ID:agwlvssainokuni,项目名称:sqlapp,代码行数:8,代码来源:PropertyMessagePostProcessorTest.java


注:本文中的org.springframework.jms.core.MessagePostProcessor.postProcessMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。