Skip to content
Snippets Groups Projects
Commit bf566ebd authored by Tim Miller's avatar Tim Miller
Browse files

UPDATE: Typo in assignment sheet.

UPDATE: CLarify assumptions in documentation.
parent 00d8d192
No related branches found
No related tags found
No related merge requests found
...@@ -16,9 +16,9 @@ The assignment is worth 20% of your final mark. ...@@ -16,9 +16,9 @@ The assignment is worth 20% of your final mark.
### Task 1 -- Equivalence partitioning ### Task 1 -- Equivalence partitioning
Using the specification, apply equivalence partitioning to derive equivalence classes for the following methods in the API: `register`, `update`, and `getSteps`. Using the specification, apply equivalence partitioning to derive equivalence classes for the following methods in the API: `register`, `update`, and `getStepData`.
Document your equivalence partitioning process for each method using only test template trees, listing the assumptions that you make (if any). You should have two trees: one for each method. You will be marked *only* on your test template trees (plus any assumptions listed), so ensure that they are clear and concise. Document your equivalence partitioning process for each method using only test template trees, listing the assumptions that you make (if any). You should have three trees: one for each method. You will be marked *only* on your test template trees (plus any assumptions listed), so ensure that they are clear and concise.
You can omit some nodes to improve readability, provided that it is clear what you intend. For example, if I was testing a book store and I wanted to test all seven Harry Potter books, I would create nodes for 1 and 7, and then use ``\ldots'' in between them to represent the other five books. You can omit some nodes to improve readability, provided that it is clear what you intend. For example, if I was testing a book store and I wanted to test all seven Harry Potter books, I would create nodes for 1 and 7, and then use ``\ldots'' in between them to represent the other five books.
......
...@@ -151,7 +151,7 @@ public class FotBot ...@@ -151,7 +151,7 @@ public class FotBot
* Assumption: the length of 'steps' is always less than or equal * Assumption: the length of 'steps' is always less than or equal
* to numbers of days since the last update * to numbers of days since the last update
* *
* Assumption: username and password are non-null * Assumption: username, password, and steps are non-null
* *
* Assumption: 'steps' records the order of the days from oldest * Assumption: 'steps' records the order of the days from oldest
* (at index 0) to most recent (at index steps.length - 1) * (at index 0) to most recent (at index steps.length - 1)
...@@ -192,6 +192,8 @@ public class FotBot ...@@ -192,6 +192,8 @@ public class FotBot
* *
* @throws NoSuchUserException if the user does not have an account * @throws NoSuchUserException if the user does not have an account
* @throws IncorrectPasswordException if the password is incorrect for this user * @throws IncorrectPasswordException if the password is incorrect for this user
*
* Assumption: username, password, and friendUsername are non-null
*/ */
public void addFriend(String username, String password, String friendUsername) public void addFriend(String username, String password, String friendUsername)
throws NoSuchUserException, IncorrectPasswordException throws NoSuchUserException, IncorrectPasswordException
...@@ -221,6 +223,8 @@ public class FotBot ...@@ -221,6 +223,8 @@ public class FotBot
* *
* @throws NoSuchUserException if either user ('username' or 'user') does not have an account * @throws NoSuchUserException if either user ('username' or 'user') does not have an account
* @throws IncorrectPasswordException if the password is incorrect for username * @throws IncorrectPasswordException if the password is incorrect for username
*
* Assumption: username, password, and targetUser are non-null
*/ */
public List<Integer> getStepData(String username, String password, String targetUser) public List<Integer> getStepData(String username, String password, String targetUser)
throws NoSuchUserException, IncorrectPasswordException throws NoSuchUserException, IncorrectPasswordException
...@@ -238,7 +242,6 @@ public class FotBot ...@@ -238,7 +242,6 @@ public class FotBot
return result; return result;
} }
/** /**
* Increment the current day by a number of days * Increment the current day by a number of days
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment