Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created March 30, 2022 19:13
Show Gist options
  • Select an option

  • Save recursivecodes/20154226ca9d78dd700fe70e4f473bd9 to your computer and use it in GitHub Desktop.

Select an option

Save recursivecodes/20154226ca9d78dd700fe70e4f473bd9 to your computer and use it in GitHub Desktop.
FunctionTest.java
public class FunctionTest {
@Test
public void testFunction() {
FnTestingRule rule = FnTestingRule.createDefault();
rule.givenEvent().enqueue();
rule.thenRun(Function.class, "handleRequest");
String result = rule.getOnlyResult().getBodyAsString();
assertNotNull(result);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment