forked from AY2324S1-CS2103T-W10-1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,006 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
--- | ||
title: Testing guide | ||
title: Testing | ||
--- | ||
|
||
# Testing | ||
|
||
## Running tests | ||
|
||
There are two ways to run tests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User enters "attach 1 f/resume.pdf" command; | ||
:AttachCommandParser parses the command; | ||
if () then ([successful parse]) | ||
:Valid argument format; | ||
else ([else]) | ||
:Display error message; | ||
stop | ||
endif | ||
:Begin AttachCommand execution; | ||
if () then ([index within visible range]) | ||
:Fetch applicant to attach to; | ||
else ([else]) | ||
:Display error message; | ||
stop | ||
endif | ||
:Copy attachments into data directory; | ||
if () then ([found errors while copying]) | ||
:Display error message; | ||
stop | ||
else ([else]) | ||
:Update person with new attachments; | ||
endif | ||
:Display success message; | ||
stop | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":AttachCommandParser" as AttachCommandParser LOGIC_COLOR | ||
participant ":AttachCommand" as AttachCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant "attachedPerson:Person" as Person MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("attach 1 f/resume.pdf f/transcript.pdf") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("attach 1 f/resume.pdf f/transcript.pdf") | ||
activate AddressBookParser | ||
|
||
create AttachCommandParser | ||
AddressBookParser -> AttachCommandParser | ||
activate AttachCommandParser | ||
|
||
AttachCommandParser --> AddressBookParser | ||
deactivate AttachCommandParser | ||
|
||
AddressBookParser -> AttachCommandParser : parse("1 f/resume.pdf f/transcript.pdf") | ||
activate AttachCommandParser | ||
|
||
create AttachCommand | ||
AttachCommandParser -> AttachCommand | ||
activate AttachCommand | ||
|
||
AttachCommand --> AttachCommandParser | ||
deactivate AttachCommand | ||
|
||
AttachCommandParser --> AddressBookParser | ||
deactivate AttachCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
AttachCommandParser -[hidden]-> AddressBookParser | ||
destroy AttachCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> AttachCommand : execute() | ||
activate AttachCommand | ||
|
||
loop 2 times | ||
AttachCommand --> AttachCommand : copyAttachment() | ||
activate AttachCommand | ||
deactivate AttachCommand | ||
end | ||
|
||
create Person | ||
AttachCommand --> Person | ||
activate Person | ||
|
||
Person --> AttachCommand | ||
deactivate Person | ||
|
||
AttachCommand -> Model : setPerson(person) | ||
activate Model | ||
|
||
Model --> AttachCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
AttachCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> AttachCommand | ||
deactivate CommandResult | ||
|
||
AttachCommand --> LogicManager : result | ||
deactivate AttachCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User enters "comment 3 c/Hardworking" command; | ||
:CommentCommandParser parses the command; | ||
if () then ([successful parse]) | ||
:Valid index; | ||
else ([else]) | ||
:Display error message; | ||
stop | ||
endif | ||
|
||
:Execute CommentCommand; | ||
:Update applicant; | ||
:Display success message; | ||
stop | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
|
||
actor User | ||
|
||
box Ui MODEL_COLOR_T1 | ||
participant ":UI" as UI RED_COLOR | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":CommentCommand" as CommentCommand BLUE_COLOR | ||
participant ":CommentCommandParser" as CommentCommandParser GREEN_COLOR | ||
participant ":ParserUtil" as ParserUtil GREEN_COLOR | ||
|
||
|
||
User -> UI: "comment 3 c/Hardworking" | ||
activate UI | ||
|
||
UI -> CommentCommand: Execute command | ||
activate CommentCommand | ||
|
||
CommentCommand -> CommentCommandParser: Parse command | ||
activate CommentCommandParser | ||
|
||
CommentCommandParser -> ParserUtil: Parse index | ||
activate ParserUtil | ||
ParserUtil -> ParserUtil: Validate index | ||
activate ParserUtil | ||
deactivate ParserUtil | ||
|
||
ParserUtil --> CommentCommandParser: Valid index | ||
deactivate ParserUtil | ||
CommentCommandParser --> CommentCommand: Valid index | ||
deactivate CommentCommandParser | ||
CommentCommand --> UI: Valid applicant | ||
deactivate CommentCommand | ||
UI --> User: MainWindow | ||
deactivate | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.