Add JMSMessageModelEnumTest

Project: 
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/commit/daa5626e
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/tree/daa5626e
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/diff/daa5626e

Branch: refs/heads/jms-dev-1.1.0
Commit: daa5626ef51c5d7337279985e12ac051e45bb815
Parents: d09c570
Author: zhangke <[email protected]>
Authored: Tue Feb 28 17:45:04 2017 +0800
Committer: zhangke <[email protected]>
Committed: Tue Feb 28 17:45:04 2017 +0800

----------------------------------------------------------------------
 .../jms/msg/enums/JMSMessageModelEnumTest.java  | 31 ++++++++++++++++++++
 1 file changed, 31 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-externals/blob/daa5626e/core/src/test/java/org/apache/rocketmq/jms/msg/enums/JMSMessageModelEnumTest.java
----------------------------------------------------------------------
diff --git 
a/core/src/test/java/org/apache/rocketmq/jms/msg/enums/JMSMessageModelEnumTest.java
 
b/core/src/test/java/org/apache/rocketmq/jms/msg/enums/JMSMessageModelEnumTest.java
new file mode 100644
index 0000000..28255dd
--- /dev/null
+++ 
b/core/src/test/java/org/apache/rocketmq/jms/msg/enums/JMSMessageModelEnumTest.java
@@ -0,0 +1,31 @@
+/*
+ * 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.rocketmq.jms.msg.enums;
+
+import org.apache.rocketmq.jms.msg.JMSTextMessage;
+import org.junit.Test;
+
+import static org.hamcrest.core.Is.is;
+import static org.junit.Assert.assertThat;
+
+public class JMSMessageModelEnumTest {
+    @Test
+    public void testToMsgModelEnum() throws Exception {
+        assertThat(JMSMessageModelEnum.toMsgModelEnum(new 
JMSTextMessage("text")), is(JMSMessageModelEnum.STRING));
+    }
+}
\ No newline at end of file

Reply via email to