Beta

only UNChecked Exceptions

Description
Loading description...
Language Features
View
AllIssues2QuestionsSuggestions1Show Resolved
  • Please sign in or sign up to leave a comment.
  • Voile Avatar
  • Voile Avatar

    The initial code and sample tests are testing a completely different thing from the actual tests (callMe instead of doThrow). What is actually being tested here?

    There should also be a RuntimeException provided as a test case; there are no reasons not to provide one.

  • ParanoidUser Avatar

    I'd suggest:

    1. Replacing void callMe() method with a more generic one, like
      static void uncheckedThrow(Throwable e) {
        // your solution here
      }
    
    1. Getting rid of the second void doThrow(Exception e) method from sample code to make it a bit more puzzling.