Skip to content

Supporting examples for my Openclassrooms course on Testing in Java: Part 2 Chapter 1

Notifications You must be signed in to change notification settings

dreamthought/openclassrooms-p2-chapter1-junit4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Part 2 - Chapter 1: Helpful JUnit Annotations

Supporting JUnit4 Examples

  • You can run the tests with mvn clean test
  • These examples are fully described in my Openclassrooms course on testing in Java.

Here are some things for your to try out:

  • Run just the conversion tests with mvn -Dgroups='com.openclassrooms.testing.Categories$ConversionTests' test
  • Run all the tests in your IDE

Don't forget the quotes around the class name or the $ might mean something completely different on your command line!

Your Fun Challenge

  • We have a failing test. Run the tests and find it.
  • @Ignore this test so it skips.
  • Run your tests again.
  • Complete and fix the test!

Remember to remove the @Ignore when you're done!

Tips

  • Uncomment the @Ignore already in the code
  • Write the Arrange, Act and Assert to prove that 1000 meters converts to 1KM.

About

Supporting examples for my Openclassrooms course on Testing in Java: Part 2 Chapter 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages