blob: 1cb00160bbd9b9f238119c5b5e01c0cf603a2b57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.http.server;
import com.yahoo.messagebus.Reply;
import com.yahoo.text.Utf8String;
/**
* Minimal reply simulator.
*
* @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
*/
class MockReply extends Reply {
Object context;
public MockReply(Object context) {
this.context = context;
}
@Override
public Utf8String getProtocol() {
return null;
}
@Override
public int getType() {
return 0;
}
@Override
public Object getContext() {
return context;
}
}
|