diff options
| author | Robert Greig <rgreig@apache.org> | 2006-12-20 19:12:01 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2006-12-20 19:12:01 +0000 |
| commit | 30740c7824aed3b1f3984ee9992fde365c72cd16 (patch) | |
| tree | 3cf5923dd2efdc449fc75bcf91c0550cd473a183 /java/client | |
| parent | 2fa0f019223db3af34f6697e479bfa8c64a46891 (diff) | |
| download | qpid-python-30740c7824aed3b1f3984ee9992fde365c72cd16.tar.gz | |
Merge of trunk up to rev 486021
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/new_persistence@489172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client')
| -rw-r--r-- | java/client/src/test/java/org/apache/qpid/client/message/TestMessageHelper.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/java/client/src/test/java/org/apache/qpid/client/message/TestMessageHelper.java b/java/client/src/test/java/org/apache/qpid/client/message/TestMessageHelper.java new file mode 100644 index 0000000000..9b477c19e2 --- /dev/null +++ b/java/client/src/test/java/org/apache/qpid/client/message/TestMessageHelper.java @@ -0,0 +1,46 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.qpid.client.message; + +import javax.jms.JMSException; + +public class TestMessageHelper +{ + public static JMSTextMessage newJMSTextMessage() throws JMSException + { + return new JMSTextMessage(); + } + + public static JMSBytesMessage newJMSBytesMessage() throws JMSException + { + return new JMSBytesMessage(); + } + + public static JMSMapMessage newJMSMapMessage() throws JMSException + { + return new JMSMapMessage(); + } + + public static JMSStreamMessage newJMSStreamMessage() + { + return new JMSStreamMessage(); + } +} |
