diff --git a/3.Integration Test Plan Document/ITPD.lyx b/3.Integration Test Plan Document/ITPD.lyx index 4932839..c7fd98f 100644 --- a/3.Integration Test Plan Document/ITPD.lyx +++ b/3.Integration Test Plan Document/ITPD.lyx @@ -2153,7 +2153,7 @@ checkCredentials(Credentials) \begin_layout Plain Layout \begin_inset Tabular - + @@ -2240,6 +2240,27 @@ An invalid object An InvalidArgumentException is raised. \end_layout +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +A valid Credentials object but without the correct combination of username, + password of the user +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Returns false. +\end_layout + \end_inset @@ -2248,8 +2269,8 @@ An InvalidArgumentException is raised. \begin_inset Text \begin_layout Plain Layout -A valid Credentials object (correct combination of username, password of - the user) +A valid Credentials object with the correct combination of username, password + of the user \end_layout \end_inset @@ -2426,7 +2447,6 @@ An existent and valid User object \begin_layout Plain Layout The User object is correctly removed. - BLABLA \end_layout \end_inset @@ -2605,7 +2625,7 @@ A Deactivated User object \begin_inset Text \begin_layout Plain Layout -The User object is no more a Deactivated User. +The User is no more a Deactivated User. \end_layout \end_inset @@ -2681,7 +2701,7 @@ Description \begin_inset Text \begin_layout Plain Layout -This function removes privileges from the User object. +This function removes some privileges from the User object. \end_layout \end_inset @@ -2785,7 +2805,7 @@ An Active User object \begin_inset Text \begin_layout Plain Layout -The User object is no more an Active User. +The User is no more an Active User. \end_layout \end_inset @@ -2825,7 +2845,7 @@ The User object is no more an Active User. \begin_layout Plain Layout \family typewriter -editProfile(User, Credentials) +editProfile(User, UserData) \end_layout \end_inset @@ -3036,7 +3056,7 @@ Description \begin_inset Text \begin_layout Plain Layout -This function returns all the User reservations. +This function returns all the User reservations and rents. \end_layout \end_inset @@ -3120,7 +3140,7 @@ An existent and valid User object \begin_inset Text \begin_layout Plain Layout -A list of all the reservations is returned. +A list of all the reservations and rents is returned. \end_layout \end_inset @@ -3280,7 +3300,7 @@ An existent and valid User object \begin_inset Text \begin_layout Plain Layout -The User object has the MSO enabled. +The MSO of the User is enabled. \end_layout \end_inset @@ -3436,7 +3456,7 @@ An existent and valid User object \begin_inset Text \begin_layout Plain Layout -The User object has the MSO disabled. +The MSO of the User is disabled. \end_layout \end_inset @@ -4807,7 +4827,7 @@ A valid Car object \begin_inset Text \begin_layout Plain Layout -A response from the Car is received. +A valid query is sent to the Car. \end_layout \end_inset @@ -5653,326 +5673,6 @@ Returns a list of reservable cars near the Location. \end_inset -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\family typewriter -isTerminable(Reservation) -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\series bold -Description -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -This function will check if all the conditions to end the reservation are - respected. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\shape slanted -Input Specification -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\shape slanted -Effect -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A null parameter -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -A NullArgumentException is raised. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -An invalid object -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -An InvalidArgumentException is raised. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A valid Reservation object -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Returns true if the reservation is terminable, false otherwise. -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace smallskip -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\family typewriter -isTerminable(Rent) -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\series bold -Description -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -This function will check if all the conditions to end the rent are respected - (for example if nobody is still in the car, and so on..).. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\shape slanted -Input Specification -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\shape slanted -Effect -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A null parameter -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -A NullArgumentException is raised. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -An invalid object -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -An InvalidArgumentException is raised. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A valid Rent object -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Returns true if the rent is terminable, false otherwise. -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace smallskip -\end_inset - - \end_layout \begin_layout Standard @@ -6133,6 +5833,166 @@ A new instance of Reservation is correctly created. \end_inset +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter +checkReservationStatus(Reservation) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Description +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +This function retrieves all the information about the Reservation object + passed as argument. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\shape slanted +Input Specification +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\shape slanted +Effect +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +A null parameter +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +A NullArgumentException is raised. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +An invalid object +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +An InvalidArgumentException is raised. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +A valid Reservation object +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Returns the current status of the Reservation. +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace smallskip +\end_inset + + \end_layout \begin_layout Standard @@ -6296,166 +6156,6 @@ terminated \end_inset -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\family typewriter -checkReservationStatus(Reservation) -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\series bold -Description -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -This function retrieves all the information about the Reservation object - passed as argument. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\shape slanted -Input Specification -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\shape slanted -Effect -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A null parameter -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -A NullArgumentException is raised. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -An invalid object -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -An InvalidArgumentException is raised. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A valid Reservation object -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Returns the current status of the Reservation. -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace smallskip -\end_inset - - \end_layout \begin_layout Standard @@ -6616,6 +6316,326 @@ A new instance of Rent is correctly created. \end_inset +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter +checkRentStatus(Rent) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Description +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +This function retrieves all the information about the Rent object passed + as argument. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\shape slanted +Input Specification +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\shape slanted +Effect +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +A null parameter +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +A NullArgumentException is raised. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +An invalid object +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +An InvalidArgumentException is raised. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +A valid Rent object +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Returns the current status of the Rent. +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace smallskip +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter +isTerminable(Rent) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Description +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +This function will check if all the conditions to end the rent are respected + (for example if nobody is still in the car, and so on..).. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\shape slanted +Input Specification +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\shape slanted +Effect +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +A null parameter +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +A NullArgumentException is raised. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +An invalid object +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +An InvalidArgumentException is raised. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +A valid Rent object +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Returns true if the rent is terminable, false otherwise. +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace smallskip +\end_inset + + \end_layout \begin_layout Standard @@ -6772,166 +6792,6 @@ terminated \end_inset -\end_layout - -\begin_layout Standard -\begin_inset VSpace smallskip -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\family typewriter -checkRentStatus(Rent) -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\series bold -Description -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -This function retrieves all the information about the Rent object passed - as argument. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\shape slanted -Input Specification -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\shape slanted -Effect -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A null parameter -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -A NullArgumentException is raised. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -An invalid object -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -An InvalidArgumentException is raised. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A valid Rent object -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Returns the current status of the Rent. -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - \end_layout \begin_layout Subsection