910111213141516
private FizzBuzz fb; private int number; @Given("^My turn is on number 99$") public void myTurnIsOnNumber99() { fb = new FizzBuzz(); this.number = 99; }
2021222324252627
assertEquals("fizz", fb.say(this.number)); } @Given("^My turn is on number 55$") public void myTurnIsOnNumber55() { fb = new FizzBuzz(); //TODO refactor: how to before? this.number = 55; }
3132333435363738
assertEquals("buzz", fb.say(this.number)); } @Given("^My turn is on number 15$") public void myTurnIsOnNumber15() { fb = new FizzBuzz(); //TODO refactor: how to before? this.number = 15; }
4243444546474849
assertEquals("fizzbuzz", fb.say(this.number)); } @Given("^My turn is on number 37$") public void myTurnIsOnNumber37() { fb = new FizzBuzz(); //TODO refactor: how to before? this.number = 37; }
4849505152535455
this.number = 37; } @Given("^My turn is on number 58$") public void myTurnIsOnNumber58() { fb = new FizzBuzz(); //TODO refactor: how to before? this.number = 58; }
5455565758596061
this.number = 58; } @Given("^My turn is on number 51$") public void myTurnIsOnNumber51() { fb = new FizzBuzz(); //TODO refactor: how to before? this.number = 51; }