]> jaekl.net Git - cfb.git/blob - test/net/jaekl/qd/util/SocketMock.java
Switch from javax.mail to net.jaekl.qd.SendMail.
[cfb.git] / test / net / jaekl / qd / util / SocketMock.java
1 package net.jaekl.qd.util;
2
3 import java.io.InputStream;
4 import java.io.OutputStream;
5 import java.net.Socket;
6
7 public class SocketMock extends Socket {
8         private InputStream m_is;
9         private OutputStream m_os;
10         
11         public SocketMock(InputStream is, OutputStream os) {
12                 m_is = is;
13                 m_os = os;
14         }
15         
16         @Override
17         public InputStream getInputStream() { return m_is; }
18         
19         @Override
20         public OutputStream getOutputStream() { return m_os; }
21
22 }