Write a method that contains division by zero fault such that(1) every test suite that achieves 100%

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper HERE Order a Different Paper HERE

Write a method that contains division by zero fault such that(1) every test suite that achieves 100% statementcoverage but less than 100% branch coverage doesnot reveal the fault, and (2) it is possible tocreate a test suite that achieves 100% branch coverage and revealsthe fault. Method can have any signature. If you think its not possibleexplain why. Create JUnit Test Cases. (Class Name: TestCase1 &TestCase2) TestCase1 should achieve 100% statement coverage less than 100%branch coverage and not reveal fault therein. TestCase2 should achive 100% branch coverage and reveal faulttherein. Also write a method that contains division by zero fault suchthat (1) it is possible to create a test suite with less than 100%statement coverage that does find the fault, and (2) every testsuite that achieves 100% statement coverage does not reveal thefault. Method can have any signature. If you think its not possibleexplain why. Create JUnit Test Cases. (Class Name: TestCase3 &TestCase4) TestCase3 should achieve less than 100% statement coverage andreveal fault therein. TestCase4 should achieve 100% statement coverage and not revealfault therein. . . .