Skip to content

A code kata which represents difficult-to-test real-world experiences

License

Notifications You must be signed in to change notification settings

craftvscruft/DifficultToTestCodeKata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DifficultToTestCodeKata

A code kata which represents difficult-to-test real-world experiences

Design notes:

  • All classes under unmodifiable are considered out-of-bounds for changes.

    • unmodifiable/objectFilter is intended to represent a database layer

      • query objects and methods which are difficult to mock
      • mix business logic into the database layer
    • unmodifiable/rooms is going to encapsulate state and make it difficult to mock the objects exposed.

      • how can instanceof make mocking difficult?
        • typecast to a different unrelated object?
  • Add in a long convoluted method which mixes many concerns and dependencies

    • may be out of the scope of this kata

About

A code kata which represents difficult-to-test real-world experiences

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%