Accountancy, asked by Rinaax3827, 1 month ago

billing method in java programs with test cases

Answers

Answered by prakashakash802
2

Answer:

Eclipse:

  • Click on New -> Java Project.
  • Write down your project name and click on finish.
  • Right click on your project. ...
  • Write down your class name and click on finish. ...
  • Click on File -> New -> JUnit Test Case.
  • Check setUp() and click on finish. ...
  • Click on OK.
  • Here, I simply add 7 and 10.
  • Write click on your test class in package explorer and click on Run as -> JUnit Test.
  • This is the result of the test.
Similar questions