Question: write a method that contains division by zero fault such that (1) every test suite that achieves 100% statement coverage but less than 100% branch

 write a method that contains division by zero fault such that

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!