public class PayloadRule extends Object implements org.junit.rules.TestRule
Constructor and Description |
---|
PayloadRule(String type) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
byte[] |
asBytes() |
InputStream |
asInputStream() |
Reader |
asReader() |
Reader |
asReader(Charset encoding) |
Reader |
asReader(String encoding) |
String |
asString() |
String |
asString(Charset encoding) |
String |
asString(String encoding) |
public PayloadRule(String type)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
public InputStream asInputStream() throws FileNotFoundException
FileNotFoundException
public byte[] asBytes() throws IOException
IOException
public String asString(Charset encoding) throws IOException
IOException
public String asString(String encoding) throws IOException
IOException
public String asString() throws IOException
IOException
public Reader asReader() throws FileNotFoundException
FileNotFoundException
public Reader asReader(String encoding) throws IOException
IOException
public Reader asReader(Charset encoding) throws FileNotFoundException
FileNotFoundException
Copyright © 2018. All rights reserved.