Java Factory Pattern

  • + 0 comments

    Ugh! I had to take a guess that returning null is expected behavior when the given input is neither "cake" nor "pizza". What is the point of hiding the failing test cases, especially when the English description is not complete?