Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JUnit 5 Workshop at Dev Nexus 2018

JUnit 5 Workshop at Dev Nexus 2018

This is similar to the JUnit Hands On Lab I did at JavaOne in September 2017 except:
1) It has been updated now that JUnit 5 has been released more than a week
2) It uses Gradle
3) The content is expanded since the timeframe is longer

Jeanne Boyarsky

February 11, 2018
Tweet

More Decks by Jeanne Boyarsky

Other Decks in Technology

Transcript

  1. Why JUnit 5? •  Java 8 support! •  More annotations/assertions!

    •  More power! •  Released September 10, 2017
  2. What you’ll learn in the lab •  How to convert

    a Gradle project •  New dependencies •  Required config Note: If you use Maven at your job, you can read the Maven equivalents at https://github.com/boyarsky/JavaOne2017-HOL-JUnit5
  3. What you’ll learn in the lab •  Changes from JUnit

    4 •  Imports •  Annotations •  Assertion messages and assertThat() •  Parameterized tests •  Rules
  4. What you’ll learn in the lab •  New functionality • 

    Parameterized tests •  Repeating tests •  Display names •  Tags
  5. What you’ll learn in the lab •  Working with Libraries

    •  Soft Assertions •  Mockito
  6. Flow •  The lab is self paced •  Raise your

    hand if you get stuck or have a question. •  If there is a FAQ, I’ll demo it on the screen.
  7. What tools do I use? •  Eclipse or •  IntelliJ

    or •  Command line Gradle/Git + your choice of text editor
  8. Let’s start! On to the lab! In a browser go

    to https://github.com/boyarsky/2018- devnexus-junit5-workshop Open instructions word doc