Question: DECISION TABLES Summary: you will be developing DT tests for the method Insurance.premium ( ) . General Instructions Source code for class Insurance is provided

DECISION TABLES
Summary: you will be developing DT tests for the method Insurance.premium().
General Instructions
Source code for class Insurance is provided in the source folder.
Tasks:
Task 1: develop DT tests for Insurance.premium() as specified at the end of this document (and in the source code). Document the results of your analysis, the test coverage items, and the test cases. Then develop your test implementation: you may use the test-template file as the basis for this.
DT Testing Notes
To simplify the lab, you will be developing tests for the following conditions only:
An insurable age (i.e. age>=16 and age=65)
ncb==YES
In the real world, you would then go on and develop DT tests for the inverse of these conditions this technique (called sub-tables) will be discussed in the lecture next week.
Do NOT include ncb in your analysis or Test Coverage Items
Do NOT include values of age outside this range in your analysis or Test Coverage Items
DO include ncb in your Test Cases
As before, treat the output from premium() like an enum according to the specification it can only take on one of 5 discrete values, so you cannot write tests to generate any other value, so there is no need to consider all the other values not mentioned. Use five partitions, with one value each, in increasing numeric order.
Specification for premium()
Description
The method Insurance.premium() calculates the premium for car insurance based on several factors.
Javadoc
Note
The source code for premium is provided in the lab folder (see Insurance.java).
You can view the formatted Javadoc by using the command:
javadoc -d javadoc Insurance.java
And then opening javadoc\cs608\Insurance.html in the browser.
 DECISION TABLES Summary: you will be developing DT tests for the

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!