Ad
  • Default User Avatar

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

  • Default User Avatar

    You're right there is something weird: I always thought that this import was necessary, I solved troubles sometimes by adding it, but in the meantime I saw implementations working without it. So... I dunno... :-/

  • Custom User Avatar

    @B4B.

    It is always present in the prefilled code, between others, so you never noticed it, but this time, you paste your full code from your IDE in replacement (I suppose) so it was lacking this line.

    On the contrary. I notice everything! My habit is to remove all imports that seem to be redundant so I saw this one, and removed it. I never had this problem before, so why now? I'm sure I've removed the same import from other Java Katas and nobody mentioned it before... I can remove it in the Kata editor and everything works fine with it commented out for me. (??)

  • Default User Avatar

    resolve what? The issue? I did! ;)

  • Default User Avatar

    Works perfectly fine in java, on my side. Close the issue.

  • Default User Avatar

    Oops, I didn't see this one. Corrected. Should be good, now.

  • Custom User Avatar

    rename howmanyBees > howManyBees

  • Default User Avatar

    Hi DM!

    This is needed so that CW can run/import the Junit test module. It is always present in the prefilled code, between others, so you never noticed it, but this time, you paste your full code from your IDE in replacement (I suppose) so it was lacking this line. I had the problem not so long ago, doing some translations.

    Cheers!

  • Custom User Avatar

    Hi B4B. Can you explain or reference me why that is needed. I don't think I ever imported it for other Kata either.. :-|

  • Default User Avatar

    this line was missing : import org.junit.runners.JUnit4;

    I tried to update the kata, but CW's server has some issue on is side, for now. Just had this line, it will make the same tests work. But you'll have to wait for a correction to pass the test cases (same problem there)

    EDIT: corrected