Kata 4: Setting Boundaries

Kata 4: Setting Boundaries

The App

SmartFashion is a clothes store. It has an API which can be used by their own website or other websites they have partnered with, hence the need for the API.

The API is basically a CRUD (Create, Read, Update, Delete) API.

Basic Clients can:

  • Search for items
  • Buy items

Admin Clients can also:

  • Add items
  • Remove items
  • Update items

Problem Statement

Write a suite of Boundary Tests for the "buy" scenarios. Boundary Tests are covered in our Best Practices: Structuring Your Tests article.


Highlight the text below to reveal the clues:

  • Example: if no item exists, the buy operation should not be completed and an error message should exist in the response.
  • Try not to include anything but boundary tests.