forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from seraphimstreets/master
Fix some formatting issues
- Loading branch information
Showing
15 changed files
with
126 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ModuLightParser" as ModuLightParser LOGIC_COLOR | ||
participant ":DeleteGradedComponentCommandParser" as DeleteGradedComponentCommandParser LOGIC_COLOR | ||
participant ":DeleteGradedComponentCommand" as DeleteGradedComponentCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("deleteComp 1") | ||
activate LogicManager | ||
|
||
LogicManager -> ModuLightParser : parseCommand("deleteComp 1") | ||
activate ModuLightParser | ||
|
||
create DeleteGradedComponentCommandParser | ||
ModuLightParser -> DeleteGradedComponentCommandParser | ||
activate DeleteGradedComponentCommandParser | ||
|
||
DeleteGradedComponentCommandParser --> ModuLightParser | ||
deactivate DeleteGradedComponentCommandParser | ||
|
||
ModuLightParser -> DeleteGradedComponentCommandParser : parse(arguments) | ||
activate DeleteGradedComponentCommandParser | ||
|
||
|
||
create DeleteGradedComponentCommand | ||
DeleteGradedComponentCommandParser -> DeleteGradedComponentCommand : new DeleteGradedComponentCommand(index) | ||
activate DeleteGradedComponentCommand | ||
|
||
DeleteGradedComponentCommand --> DeleteGradedComponentCommandParser | ||
deactivate DeleteGradedComponentCommand | ||
|
||
DeleteGradedComponentCommandParser --> ModuLightParser | ||
deactivate DeleteGradedComponentCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
DeleteGradedComponentCommandParser -[hidden]-> ModuLightParser | ||
destroy DeleteGradedComponentCommandParser | ||
|
||
ModuLightParser --> LogicManager | ||
deactivate ModuLightParser | ||
|
||
LogicManager -> DeleteGradedComponentCommand : execute() | ||
activate DeleteGradedComponentCommand | ||
|
||
DeleteGradedComponentCommand -> Model : removeGradedComponent(gc) | ||
activate Model | ||
|
||
Model --> DeleteGradedComponentCommand | ||
deactivate Model | ||
|
||
loop for all associated studentScores of gc | ||
DeleteGradedComponentCommand -> Model :removeStudentScore(studentScore) | ||
activate Model | ||
|
||
Model --> DeleteGradedComponentCommand | ||
deactivate Model | ||
end | ||
|
||
|
||
create CommandResult | ||
DeleteGradedComponentCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteGradedComponentCommand | ||
deactivate CommandResult | ||
|
||
DeleteGradedComponentCommand --> LogicManager : result | ||
deactivate DeleteGradedComponentCommand | ||
|
||
[<--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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,13 +31,13 @@ public void format_student_success() { | |
new StudentEmail("[email protected]"), new TutorialGroup("T01"), new ArrayList<>(), | ||
new HashSet<>()); | ||
String expectedOutput = "A0123456U; Name: Test Stu; Email: [email protected]; Tutorial Group: T01"; | ||
assertEquals(Messages.format(testStu), expectedOutput); | ||
assertEquals(Messages.formatStudent(testStu), expectedOutput); | ||
} | ||
|
||
@Test | ||
public void format_studentScore_success() { | ||
StudentScore testStuScore = new StudentScore(new StudentId("A0123456U"), new GcName("Midterm"), 40); | ||
String expectedOutput = "; Student ID: A0123456U; Graded component name: Midterm; Score: 40.0"; | ||
String expectedOutput = "Student ID: A0123456U; Graded component name: Midterm; Score: 40.0"; | ||
assertEquals(Messages.formatStudentScore(testStuScore), expectedOutput); | ||
} | ||
|
||
|
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