summaryrefslogtreecommitdiffstats
path: root/simple/simple-http/src/test/java/org/simpleframework/http/core/MockEntity.java
diff options
context:
space:
mode:
Diffstat (limited to 'simple/simple-http/src/test/java/org/simpleframework/http/core/MockEntity.java')
-rw-r--r--simple/simple-http/src/test/java/org/simpleframework/http/core/MockEntity.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/simple/simple-http/src/test/java/org/simpleframework/http/core/MockEntity.java b/simple/simple-http/src/test/java/org/simpleframework/http/core/MockEntity.java
new file mode 100644
index 0000000..e0ec896
--- /dev/null
+++ b/simple/simple-http/src/test/java/org/simpleframework/http/core/MockEntity.java
@@ -0,0 +1,49 @@
+
+package org.simpleframework.http.core;
+
+import org.simpleframework.http.message.Body;
+import org.simpleframework.http.message.Entity;
+import org.simpleframework.http.message.Header;
+import org.simpleframework.transport.Channel;
+
+
+public class MockEntity implements Entity {
+
+ private Body body;
+ private Header header;
+
+ public MockEntity() {
+ super();
+ }
+
+ public MockEntity(Body body) {
+ this.body = body;
+ }
+
+ public MockEntity(Body body, Header header) {
+ this.body = body;
+ this.header = header;
+ }
+
+ public long getTime() {
+ return 0;
+ }
+
+ public Body getBody() {
+ return body;
+ }
+
+ public Header getHeader() {
+ return header;
+ }
+
+ public Channel getChannel() {
+ return null;
+ }
+
+ public void close() {}
+
+ public long getStart() {
+ return 0;
+ }
+}