3
nperrin
8y

Any advise for breaking others people code with tests in Java?

Comments
  • 3
    Just run a performance test.
  • 0
    @dovipas haha not sure if you said it because Java, but making a loop of new objects its not a bad idea
  • 0
    Let a six year old at it.
  • 2
    JUnitTest?
  • 0
  • 1
    If you have input parameters then there must be "not null" or "empty" preconditions on them. Add tests for those. If they dependencies are not being mocked in the test then mock them and see if the test still passes.
Add Comment