Ad
  • Default User Avatar

    This comment has been deleted.

  • Default User Avatar

    I'm new to java so it may be a silly question, but how can some tests expect an Exception AND a result ? For me, the function either returns or throws. Or maybe I don't understand the trace ?
    Here is an example:
    Log:
    Expected exception for multiple label caught: java.lang.RuntimeException: An error occurred during execution: Label already used.
    Trace:
    multiple label expected:<[3]> but was:<[]>

    Edit:
    I was "preprocessing" the code looking for labels before running it, so I split the exception management into 2 functions. I got it to work by managing all exceptions in the run phase. I did it by stocking the position of the bug in the pre-run phase.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution