Question: Your task is to drive and create class ( es ) and method ( s ) from the given JUnit class and then add them
Your task is to drive and create classes and methods from the given JUnit class and then add
them to the package using the following facts:
You can get and set any toy attributes.
The child object can be constructed by receiving the child's name, age and list of toys.
There is no need to check if there are duplicated toys eg two toys with the same
information
Each child owns their toys and does not share them with other children.
A child can dispose of his toys.
A child can denote his toys to another child. In this case, the toys will be removed from
the donor child, and the toys will be added to the list of toys of another child.
You can get and set the child's name.
You can get and set the child's age.
You can get and set the child's list of toys.
You can add a child to the order as long as you do not reach the maximum number of
children per order, which is
You can remove a child from the order. If the child exists in a given order, then you need
to update the number of children in this order. Otherwise, do nothing.
You can retrieve the list of children in any given order.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
