Skip to content

Supporting examples from my Openclassrooms Java Testing course: Part2 - Chapter 1

Notifications You must be signed in to change notification settings

dreamthought/openclassrooms-p2-chapter1-junit5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Testing: Part 2 - Chapter 1

Supporting JUnit5 Examples

  • You can run the tests with mvn clean test
  • These examples are fully described in my Openclassrooms course on Achieving Quality Through Testing in Java.
  • Run just the conversion tests with mvn test -Dgroups='ConversionTests'
    • Have a look at ConversionCalculatorTest and see how this matches the @Tag annotation!
  • Explore the code. You'll have to run the tests in your IDE to see the power of @DisplayName

A Fun Challange

  • Have a go at modifying ConversionCalculatorTest to convert miles to kilometers. You can find the conversion factor online! Write your test first and modify the ConversionCalcualtor
  • It will be similar to the Celsius to Fahrenheit conversion which is already there!

About

Supporting examples from my Openclassrooms Java Testing course: Part2 - Chapter 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages