content: /*
   *  Copyright 2016-2024 Qameta Software Inc
   *
   *  Licensed under the Apache License, Version 2.0 (the "License");
   *  you may not use this file except in compliance with the License.
   *  You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   *  Unless required by applicable law or agreed to in writing, software
   *  distributed under the License is distributed on an "AS IS" BASIS,
   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   *  See the License for the specific language governing permissions and
   *  limitations under the License.
   */
  package io.qameta.allure.jbehave5.samples;
  
  import org.jbehave.core.annotations.Given;
  import org.jbehave.core.annotations.Then;
  import org.jbehave.core.annotations.When;
  
  import static org.junit.jupiter.api.Assertions.assertEquals;
  
  public class SimpleStorySteps {
  
      private int a;
      private int b;
      private int c;
  
      @Given("a is $number")
      public void a_is(int arg1) {
          this.a = arg1;
      }
  
      @Given("b is $number")
      public void b_is(int arg1) {
          this.b = arg1;
      }
  
      @When("I add a to b")
      public void i_add_a_to_b() {
          this.c = this.a + this.b;
      }
  
      @Then("result is $number")
      public void result_is(int arg1) {
          assertEquals(this.c, arg1);
      }
  
  }
  