Draft

Design Patterns: Observer Pattern for the runway status at an airport

Description
Loading description...
Design Patterns
Algorithms
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    Tests are woefully inadequate, they don't even check if the methods would call other relevant methods (e.g unsubscribing a runway from a ATCClient should unsubscribe it from the runway).

  • FArekkusu Avatar

    No random tests.

  • MMMAAANNN Avatar

    Also, consider specifying in the text of description (and not just in test cases) what behaviour do you expect and what fields are required for each class. Currently, you do not specify explicitly what happens to .runwayStatus in client objects after they unsubscribe. Also, judging from your own code, clients behave differently: GroundServiceClient just changes .runwayStatus to empty string, while ATCClient deletes the whole runway - so trying to access runwayStatus will probably cause an exception. This is not intuitive, you should specify this somewhere.

  • MMMAAANNN Avatar

    This is a very nice kata! I was looking for something that helps exploring design patterns.

    However, I believe test cases could be more detailed. Currently, example test cases are just the same as final test cases. I think it is a good idea to add some more, checking different things.