Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialManish Giri
16,266 PointsCompatibility with JUnit 5?
JUnit 5 has been released, and it would be nice to learn this version instead of JUnit 4. So, I wanted to know if the JUnit topics covered in these lessons would work with JUnit 5 as well.
Thanks
1 Answer
Livia Galeazzi
Java Web Development Techdegree Graduate 21,083 PointsJUnit5 is backwards compatible. That means everything you do with JUnit4 you can also do with JUnit5. So feel free to use JUnit5, and when you're done with the course, explore some of its cool new features. Personally, I'm very excited about it. There are lots of new tools that will no doubt change the way we write tests! https://developer.ibm.com/dwblog/2017/best-new-features-junit-5/
Look here on how to run JUnit5 with backwards compatibility: http://junit.org/junit5/docs/current/user-guide/#migrating-from-junit4-running