With the following steps you can map Jbehave steps to java methods
-
- Step 1: Copy the 4 pending methods
- Step2: Create a new Java Class “Calculator”
- Step3: Paste the 4 pending methods to the java class
- Step4: Edit the methods in the class “Calculator”
- Delete all the pending annotation “@pending”
- Import the annotation’s classes with “Alt + Enter”
- Add parameters to the methods
-
- Step5: Implements the methods of the class “calculator”
- Run AcceptanceTest
For more details see the following Video:
This video is with subtitle