Home‎ > ‎Pages‎ > ‎Bella Forrister [public]‎ > ‎Coding Reference‎ > ‎Java‎ > ‎

Create a Sample JUnit Project

Creating Sample JUnit project in Eclipse / MyEclipse
  • Create a Java Project (e.g. Project Name : JUnitTest)
  • Manually add the library to the buildpath
    • Right click on the project > Properties > Java Build Path > Libraries > Add Library (or Add External Libraries) > JUnit > Next > Finish > OK
  • Right click on the project > New > Source Folder > test
  • Right click in the test folder > New > JUnit Test Case