java.lang.Object
org.kohsuke.github.PayloadRule
- All Implemented Interfaces:
org.junit.rules.TestRule
The Class PayloadRule.
- Author:
- Stephen Connolly
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Apply.byte[]asBytes()As bytes.As input stream.asReader()As reader.As reader.As reader.As reader.asString()As string.As string.As string.
-
Constructor Details
-
PayloadRule
Instantiates a new payload rule.- Parameters:
type- the type
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Apply.- Specified by:
applyin interfaceorg.junit.rules.TestRule- Parameters:
base- the basedescription- the description- Returns:
- the statement
-
asBytes
As bytes.- Returns:
- the byte[]
- Throws:
IOException- Signals that an I/O exception has occurred.
-
asInputStream
As input stream.- Returns:
- the input stream
- Throws:
FileNotFoundException- the file not found exception
-
asReader
As reader.- Returns:
- the reader
- Throws:
FileNotFoundException- the file not found exception
-
asReader
As reader.- Parameters:
encoding- the encoding- Returns:
- the reader
- Throws:
FileNotFoundException- the file not found exception
-
asReader
As reader.- Parameters:
transformer- the transformer- Returns:
- the reader
- Throws:
IOException- Signals that an I/O exception has occurred.
-
asReader
As reader.- Parameters:
encoding- the encoding- Returns:
- the reader
- Throws:
IOException- Signals that an I/O exception has occurred.
-
asString
As string.- Returns:
- the string
- Throws:
IOException- Signals that an I/O exception has occurred.
-
asString
As string.- Parameters:
encoding- the encoding- Returns:
- the string
- Throws:
IOException- Signals that an I/O exception has occurred.
-
asString
As string.- Parameters:
encoding- the encoding- Returns:
- the string
- Throws:
IOException- Signals that an I/O exception has occurred.
-