Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/jms
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24538/src/j2ee/common/com/mockobjects/jms
Added Files:
MockBytesMessage.java
Log Message:
Did some stuff
--- NEW FILE: MockBytesMessage.java ---
package com.mockobjects.jms;
import com.mockobjects.ExpectationValue;
import javax.jms.BytesMessage;
import javax.jms.JMSException;
public class MockBytesMessage extends MockMessage implements BytesMessage{
private final ExpectationValue bytes = new ExpectationValue("bytes");
public void writeBytes(byte[] bytes) throws JMSException{
this.bytes.setActual(bytes);
}
public void reset() {
}
public boolean readBoolean() throws JMSException {
// TODO Auto-generated method stub
return false;
}
public byte readByte() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public int readUnsignedByte() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public short readShort() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public int readUnsignedShort() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public char readChar() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public int readInt() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public long readLong() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public float readFloat() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public double readDouble() throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public String readUTF() throws JMSException {
// TODO Auto-generated method stub
return null;
}
public int readBytes(byte[] arg0) throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public int readBytes(byte[] arg0, int arg1) throws JMSException {
// TODO Auto-generated method stub
return 0;
}
public void writeBoolean(boolean arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeByte(byte arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeShort(short arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeChar(char arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeInt(int arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeLong(long arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeFloat(float arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeDouble(double arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeUTF(String arg0) throws JMSException {
// TODO Auto-generated method stub
}
public void writeBytes(byte[] arg0, int arg1, int arg2) throws JMSException {
// TODO Auto-generated method stub
}
public void writeObject(Object arg0) throws JMSException {
// TODO Auto-generated method stub
}
}
|