cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jp...@apache.org
Subject cxf git commit: CXF-6120 fixed the build and cleaned up the message stub class
Date Fri, 28 Nov 2014 06:59:15 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 4e332dbfc -> 4c629db50


CXF-6120 fixed the build and cleaned up the message stub class


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/4c629db5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4c629db5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4c629db5

Branch: refs/heads/2.7.x-fixes
Commit: 4c629db500670d8f4dcbd886fc10bee979f96781
Parents: 4e332db
Author: Jason Pell <jpell@apache.org>
Authored: Fri Nov 28 17:59:09 2014 +1100
Committer: Jason Pell <jpell@apache.org>
Committed: Fri Nov 28 17:59:09 2014 +1100

----------------------------------------------------------------------
 .../apache/cxf/transport/jms/MessageStub.java   | 82 +++-----------------
 1 file changed, 12 insertions(+), 70 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/4c629db5/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/MessageStub.java
----------------------------------------------------------------------
diff --git a/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/MessageStub.java
b/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/MessageStub.java
index bb3e904..d77d3f6 100644
--- a/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/MessageStub.java
+++ b/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/MessageStub.java
@@ -18,7 +18,6 @@
  */
 package org.apache.cxf.transport.jms;
 
-import java.util.Collections;
 import java.util.Enumeration;
 
 import javax.jms.Destination;
@@ -26,190 +25,146 @@ import javax.jms.JMSException;
 import javax.jms.Message;
 
 public class MessageStub implements Message {
-
     @Override
     public String getJMSMessageID() throws JMSException {
-        // TODO Auto-generated method stub
         return null;
     }
 
     @Override
     public void setJMSMessageID(String id) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public long getJMSTimestamp() throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public void setJMSTimestamp(long timestamp) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public byte[] getJMSCorrelationIDAsBytes() throws JMSException {
-        // TODO Auto-generated method stub
         return null;
     }
 
     @Override
     public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setJMSCorrelationID(String correlationID) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public String getJMSCorrelationID() throws JMSException {
-        // TODO Auto-generated method stub
         return null;
     }
 
     @Override
     public Destination getJMSReplyTo() throws JMSException {
-        // TODO Auto-generated method stub
         return null;
     }
 
     @Override
     public void setJMSReplyTo(Destination replyTo) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public Destination getJMSDestination() throws JMSException {
-        // TODO Auto-generated method stub
         return null;
     }
 
     @Override
     public void setJMSDestination(Destination destination) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public int getJMSDeliveryMode() throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public void setJMSDeliveryMode(int deliveryMode) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public boolean getJMSRedelivered() throws JMSException {
-        // TODO Auto-generated method stub
         return false;
     }
 
     @Override
     public void setJMSRedelivered(boolean redelivered) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public String getJMSType() throws JMSException {
-        // TODO Auto-generated method stub
         return null;
     }
 
     @Override
     public void setJMSType(String type) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public long getJMSExpiration() throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public void setJMSExpiration(long expiration) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public int getJMSPriority() throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public void setJMSPriority(int priority) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void clearProperties() throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public boolean propertyExists(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return false;
     }
 
     @Override
     public boolean getBooleanProperty(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return false;
     }
 
     @Override
     public byte getByteProperty(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public short getShortProperty(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public int getIntProperty(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public long getLongProperty(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public float getFloatProperty(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
     @Override
     public double getDoubleProperty(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return 0;
     }
 
@@ -224,79 +179,66 @@ public class MessageStub implements Message {
 
     @Override
     public Object getObjectProperty(String name) throws JMSException {
-        // TODO Auto-generated method stub
         return null;
     }
 
     @Override
     public Enumeration getPropertyNames() throws JMSException {
-        return Collections.emptyEnumeration();
+        Enumeration enumer = new Enumeration() {
+            @Override
+            public boolean hasMoreElements() {
+                return false;
+            }
+
+            @Override
+            public Object nextElement() {
+                return null;
+            }
+        };
+        return enumer;
     }
 
     @Override
     public void setBooleanProperty(String name, boolean value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setByteProperty(String name, byte value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setShortProperty(String name, short value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setIntProperty(String name, int value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setLongProperty(String name, long value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setFloatProperty(String name, float value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setDoubleProperty(String name, double value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setStringProperty(String name, String value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void setObjectProperty(String name, Object value) throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void acknowledge() throws JMSException {
-        // TODO Auto-generated method stub
-
     }
 
     @Override
     public void clearBody() throws JMSException {
-        // TODO Auto-generated method stub
-
     }
-
 }


Mime
View raw message