From the course: Cucumber Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Step definitions: Next scenario step

Step definitions: Next scenario step

From the course: Cucumber Essential Training

Start my 1-month free trial

Step definitions: Next scenario step

- [Instructor] So we are missing a RestaurantMenuItem class. Let's go ahead and add that. New, Class, and I'm going to call it RestaurantMenuItem. Let's add three attributes to this class. ItemName, Description, and Price. And let's create getters and setters for these three attributes. Let's pick Description, and Price, and for ItemName I'm not putting a setter because once you create an item with ItemName you cannot change it later. So, I have my getters and setters set, and I need a constructor for this class, and this constructor will take all these three items. The details of this class's implementation is not important, but what's important is that your implementation is driven by step definitions, which is driven by your feature file, so we are doing test-first development. Now if I see this, I should be able to fix this, and my first step is implemented. Now this new menu item is not used anywhere else. I'm just going to ignore that for the time being, and let's pass this menu…

Contents