[JAVA] [For beginners] I tried using JUnit 5 in Eclipse
__ * All information is as of the time the article was created .__
What is JUnit
Framework for automatic unit testing of Java programs [1]
Operating environment
Hardware: MacBook Pro (Retina, 13-inch, Mid 2014)
OS: MacOS Mojave 10.14.3
IDE: Eclipse 2019-03 (Japaneseized)
Make JUnit 5 work in Eclipse
However, since Eclipse installs JUnit as standard, there is nothing to install newly.
- In "Project Explorer", right-click the project that uses JUnit.
- Click "Properties".
- Select "Java Build Path" and click "Library".
- Click "Add Library". <img width = "766" alt = "Screenshot 2019-06-16 15.36.09.png " src = "https://qiita-image-store.s3.ap" -northeast-1.amazonaws.com/0/210617/a1de5c8a-6e7f-3801-8e45-83b36b98d989.png ">
- Select "JUnit" and click "Next".
- Select "JUnit 5" in "JUnit Library Version" and click "Finish".
next
Try testing the test target class with JUnit 5 (creating an article soon)
reference
[1] JUnit --Wikipedia