JUnit 5 Tutorial: Rules

Sdílet
Vložit
  • čas přidán 23. 08. 2024

Komentáře • 10

  • @Sarah_Snooze
    @Sarah_Snooze Před 2 lety +4

    The Title is misleading, unfortunately.

    • @BURN-ADDiCT
      @BURN-ADDiCT Před 2 lety

      Very true.
      Also, I have actually found that there are ways to use Junit 5 exclusively. The title of this video made me assume that this was the Junit 5 way of doing thing, one that relies on Junit 4 features

    • @CraftOfProgramming
      @CraftOfProgramming  Před 2 lety

      Sarah,
      This video is part of a complete JUnit 5 course. I start with JUnit 4 to cover the basics and then I build from there.
      Sorry for the confusion.

  • @BURN-ADDiCT
    @BURN-ADDiCT Před 2 lety +3

    The rule annotation was removed in Junit 5. They say to use ExtendWith or RegisterExtension. I would have loved to learn how to make rules without using Junit 4. Is there no way to only use Junit 5 for making rules.

    • @theweekday8158
      @theweekday8158 Před 2 lety

      I have a server and I start it and shut it down in beforeeach and aftereach methods respectively. I am getting an error class org.junit.rules.Externalresouce not found. Do you know how to resolve it?

    • @CraftOfProgramming
      @CraftOfProgramming  Před 2 lety

      @BURN-ADDICT I cover this here:
      czcams.com/video/LS9o5k13Na4/video.html
      @'the weekday': make sure you're using JUnit 4 as this was removed on JUnit 5.

  • @nisachannel7077
    @nisachannel7077 Před 5 lety +3

    Awesome video!

  • @telephon3208
    @telephon3208 Před 2 lety

    is it Junit4 or Junit5?

    • @CraftOfProgramming
      @CraftOfProgramming  Před 2 lety

      It's a Junit 5 course. But I cover JUnit 4 as a basis/background and then I build from there. Sorry for the confusion