public class MiddlewaresTest extends Object
Modifier and Type | Field and Description |
---|---|
org.junit.rules.ExpectedException |
thrown |
Constructor and Description |
---|
MiddlewaresTest() |
public void asShouldSerializeCharSequenceAsString() throws Exception
Exception
public void asShouldSerializeStringAsString() throws Exception
Exception
public void asShouldSerializeResponseCharSequenceAsString() throws Exception
Exception
public void asShouldNotSerializeByteString() throws Exception
Exception
public void asShouldNotSerializeResponseByteString() throws Exception
Exception
public void asShouldSerializeObjectAsJson() throws Exception
Exception
public void asShouldSerializeResponseObjectAsJson() throws Exception
Exception
public void httpShouldSetContentLengthFor200() throws Exception
Exception
public void httpShouldAppendPayloadFor200() throws Exception
Exception
public void httpShouldNotSetContentLengthOrAppendPayloadForInvalidStatusCodes() throws Exception
Exception
public void httpShouldSetContentLengthForHeadAnd200() throws Exception
Exception
public void httpShouldNotAppendPayloadForHeadAnd200() throws Exception
Exception
public void contentTypeShouldAddToNonResponse() throws Exception
Exception
public void contentTypeShouldAddToResponse() throws Exception
Exception
public void serializerShouldSerialize() throws Exception
Exception
public void serializerShouldSerializeResponses() throws Exception
Exception
public void serializerShouldCopyHeadersFromResponses() throws Exception
Exception
public void serializerShouldCopyStatusCodeFromResponses() throws Exception
Exception
public void serializerShouldSetContentTypeIfPresent() throws Exception
Exception
public void serializerShouldNotSetContentTypeIfAbsent() throws Exception
Exception
Copyright © 2016. All rights reserved.