Skip navigation links
A C F G P R S T W 

A

addFeature(FnTestingRuleFeature) - Method in class com.fnproject.fn.testing.FnTestingRule
 
addSharedClass(Class<?>) - Method in class com.fnproject.fn.testing.FnTestingRule
Add a class to be forked during the test.
addSharedClassPrefix(String) - Method in class com.fnproject.fn.testing.FnTestingRule
Add a class or package name to be forked during the test.
afterTestComplete() - Method in interface com.fnproject.fn.testing.FnTestingRuleFeature
 
apply(Statement, Description) - Method in class com.fnproject.fn.testing.FnTestingRule
 

C

com.fnproject.fn.testing - package com.fnproject.fn.testing
 
createDefault() - Static method in class com.fnproject.fn.testing.FnTestingRule
Create an instance of the testing Rule, with Flows support

F

FnEventBuilderJUnit4 - Interface in com.fnproject.fn.testing
 
FnTestingRule - Class in com.fnproject.fn.testing
Testing Rule for fn Java FDK functions.
FnTestingRule.TestCodec - Class in com.fnproject.fn.testing
 
FnTestingRule.TestOutput - Class in com.fnproject.fn.testing
TestOutput represents an output of a function it wraps OutputEvent and provides buffered access to the function output
FnTestingRuleFeature - Interface in com.fnproject.fn.testing
Created on 07/09/2018.
fromOutputEvent(OutputEvent) - Static method in class com.fnproject.fn.testing.FnTestingRule.TestOutput
construct a test output from an output event - this consums the body of the output event

G

getBodyAsBytes() - Method in class com.fnproject.fn.testing.FnTestingRule.TestOutput
 
getBodyAsString() - Method in class com.fnproject.fn.testing.FnTestingRule.TestOutput
Returns the buffered body of the event as a string
getConfig() - Method in class com.fnproject.fn.testing.FnTestingRule
 
getContentType() - Method in class com.fnproject.fn.testing.FnTestingRule.TestOutput
 
getEventEnv() - Method in class com.fnproject.fn.testing.FnTestingRule
 
getHeaders() - Method in class com.fnproject.fn.testing.FnTestingRule.TestOutput
 
getLastExitCode() - Method in class com.fnproject.fn.testing.FnTestingRule
Get the exit code from the most recent invocation 0 = success 1 = failed 2 = not run due to initialization error
getOnlyResult() - Method in class com.fnproject.fn.testing.FnTestingRule
Convenience method to get the one and only parsed http response expected on the output of the function
getResults() - Method in class com.fnproject.fn.testing.FnTestingRule
Parses any pending HTTP responses on the functions output stream and returns the corresponding FnResult instances
getSharedPrefixes() - Method in class com.fnproject.fn.testing.FnTestingRule
 
getStatus() - Method in class com.fnproject.fn.testing.FnTestingRule.TestOutput
 
getStdErr() - Method in class com.fnproject.fn.testing.FnTestingRule
Get the StdErr stream returned by the function as a byte array
getStdErrAsString() - Method in class com.fnproject.fn.testing.FnTestingRule
Gets the StdErr stream returned by the function as a String
givenEvent() - Method in class com.fnproject.fn.testing.FnTestingRule
Create an HTTP event builder for the function

P

prepareFunctionClassLoader(FnTestingClassLoader) - Method in interface com.fnproject.fn.testing.FnTestingRuleFeature
 
prepareTest(ClassLoader, PrintStream, String, String) - Method in interface com.fnproject.fn.testing.FnTestingRuleFeature
Prepares a test

R

runCodec(EventCodec.Handler) - Method in class com.fnproject.fn.testing.FnTestingRule.TestCodec
 

S

setConfig(String, String) - Method in class com.fnproject.fn.testing.FnTestingRule
Add a config variable to the function for the test

T

TestCodec(List<InputEvent>, List<FnResult>) - Constructor for class com.fnproject.fn.testing.FnTestingRule.TestCodec
 
thenRun(Class<?>, String) - Method in class com.fnproject.fn.testing.FnTestingRule
Runs the function runtime with the specified class and method (and waits for Flow stages to finish if the test spawns any flows)
thenRun(String, String) - Method in class com.fnproject.fn.testing.FnTestingRule
Runs the function runtime with the specified class and method (and waits for Flow stages to finish if the test spawns any Flow)

W

writeToOutput(OutputStream) - Method in class com.fnproject.fn.testing.FnTestingRule.TestOutput
 
A C F G P R S T W 
Skip navigation links

Copyright © 2021. All rights reserved.