com
.
twitter
.
finatra
.
httpclient
.
test
InMemoryHttpService
Related Docs:
object InMemoryHttpService
|
package test
class
InMemoryHttpService
extends
Service
[
Request
,
Response
] with
Resettable
with
Logging
Linear Supertypes
Logging
,
Logging
,
Resettable
,
Service
[
Request
,
Response
],
Closable
, (
Request
) ⇒
Future
[
Response
],
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
InMemoryHttpService
Logging
Logging
Resettable
Service
Closable
Function1
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
InMemoryHttpService
()
Type Members
case class
RequestKey
(
method:
Method
,
path:
String
)
extends
Product
with
Serializable
case class
ResponseWithExpectedBody
(
response:
Response
,
expectedBody:
Option
[
String
]
,
sticky:
Boolean
)
extends
Product
with
Serializable
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
andThen
[
A
]
(
g: (
Future
[
Response
]) ⇒
A
)
: (
Request
) ⇒
A
Definition Classes
Function1
Annotations
@unspecialized
()
def
apply
(
request:
Request
)
:
Future
[
Response
]
Definition Classes
InMemoryHttpService
→ Service → Function1
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
close
(
deadline:
Time
)
:
Future
[
Unit
]
Definition Classes
Service → Closable
def
close
(
after:
Duration
)
:
Future
[
Unit
]
Definition Classes
Closable
final
def
close
()
:
Future
[
Unit
]
Definition Classes
Closable
def
compose
[
A
]
(
g: (
A
) ⇒
Request
)
: (
A
) ⇒
Future
[
Response
]
Definition Classes
Function1
Annotations
@unspecialized
()
def
debug
(
msg: ⇒
Any
,
t: ⇒
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
debug
(
msg: ⇒
Any
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
debugFutureResult
[
T
]
(
msg:
String
)
(
func: ⇒
Future
[
T
]
)
:
Future
[
T
]
Attributes
protected
Definition Classes
Logging
def
debugResult
[
T
]
(
msg:
String
)
(
func: ⇒
T
)
:
T
Attributes
protected
Definition Classes
Logging
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
error
(
msg: ⇒
Any
,
t: ⇒
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
error
(
msg: ⇒
Any
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
errorResult
[
T
]
(
msg:
String
)
(
func: ⇒
T
)
:
T
Attributes
protected
Definition Classes
Logging
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
info
(
msg: ⇒
Any
,
t: ⇒
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
info
(
msg: ⇒
Any
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
infoResult
[
T
]
(
msg:
String
)
(
func: ⇒
T
)
:
T
Attributes
protected
Definition Classes
Logging
final
def
isAvailable
:
Boolean
Definition Classes
Service
def
isDebugEnabled
:
Boolean
Attributes
protected
Definition Classes
Logging
def
isErrorEnabled
:
Boolean
Attributes
protected
Definition Classes
Logging
def
isInfoEnabled
:
Boolean
Attributes
protected
Definition Classes
Logging
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
isTraceEnabled
:
Boolean
Attributes
protected
Definition Classes
Logging
def
isWarnEnabled
:
Boolean
Attributes
protected
Definition Classes
Logging
def
logger
:
Logger
Attributes
protected
Definition Classes
Logging → Logging
def
loggerName
:
String
Attributes
protected
Definition Classes
Logging
def
map
[
Req1
]
(
f: (
Req1
) ⇒
Request
)
:
Service
[
Req1
,
Response
]
Definition Classes
Service
def
mock
(
method:
Method
,
path:
String
,
andReturn:
Response
,
sticky:
Boolean
,
withBody:
Option
[
String
] =
None
)
:
Unit
def
mockGet
(
path:
String
,
andReturn:
Response
,
sticky:
Boolean
=
false
)
:
Unit
def
mockPost
(
path:
String
,
withBody:
String
=
null
,
andReturn:
Response
,
sticky:
Boolean
=
false
)
:
Unit
def
mockPut
(
path:
String
,
withBody:
String
=
null
,
andReturn:
Response
,
sticky:
Boolean
=
false
)
:
Unit
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
var
overrideResponse
:
Option
[
Response
]
def
printRequests
()
:
Unit
val
recordedRequests
:
ArrayBuffer
[
Request
]
def
reset
()
:
Unit
Definition Classes
InMemoryHttpService
→ Resettable
def
status
:
Status
Definition Classes
Service
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
time
[
T
]
(
formatStr:
String
)
(
func: ⇒
T
)
:
T
Attributes
protected
Definition Classes
Logging
def
toString
()
:
String
Definition Classes
Function1 → AnyRef → Any
def
trace
(
msg: ⇒
Any
,
t: ⇒
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
trace
(
msg: ⇒
Any
)
:
Unit
Attributes
protected
Definition Classes
Logging
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
warn
(
msg: ⇒
Any
,
t: ⇒
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
warn
(
msg: ⇒
Any
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
warnResult
[
T
]
(
msg:
String
)
(
func: ⇒
T
)
:
T
Attributes
protected
Definition Classes
Logging
Inherited from
Logging
Inherited from
Logging
Inherited from
Resettable
Inherited from
Service
[
Request
,
Response
]
Inherited from
Closable
Inherited from (
Request
) ⇒
Future
[
Response
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped