Created
March 30, 2022 19:13
-
-
Save recursivecodes/20154226ca9d78dd700fe70e4f473bd9 to your computer and use it in GitHub Desktop.
FunctionTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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