Skip to content

Commit

Permalink
change indentation, fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoHW committed Mar 27, 2024
1 parent 6f6606f commit 9ab63fc
Showing 1 changed file with 45 additions and 29 deletions.
74 changes: 45 additions & 29 deletions src/main/java/seedu/address/model/util/SampleDataUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,51 @@
*/
public class SampleDataUtil {
public static Patient[] getSamplePatients() {
return new Patient[] {
new Patient(new PatientHospitalId("12345"), new Name("Alex Yeoh Jia Jun"), new PreferredName("Alex"),
new FoodPreference("Curry chicken"),
new FamilyCondition("Stable, Has 2 sons that visits him regularly"),
new Hobby("Singing karaoke"),
getTagSet("diabetes"),
getEventSet(new String[] {"Birthday"}, new String[] {"20-01-2022"})),
new Patient(new PatientHospitalId("12346"), new Name("Bernice Yu Sheng Huat"), new PreferredName("Bern"),
new FoodPreference("Char Kuay Tiao, Black Carrot Cake"),
new FamilyCondition("Lives alone, no family members around"), new Hobby("Playing Mahjong"),
getTagSet("high blood pressure"),
getEventSet(new String[] {"Family Visit"}, new String[] {"30-03-2022, 15:00 - 18:00"})),
new Patient(new PatientHospitalId("12347"), new Name("Mary Jane"), new PreferredName("Mary"),
new FoodPreference("Korean"),
new FamilyCondition("Lives with only daughter, quarrels regularly with daughter"),
new Hobby("Watching Drama"),
getTagSet("fall risk")),
new Patient(new PatientHospitalId("12348"), new Name("David Li"), new PreferredName("David"),
new FoodPreference("Bak Kut Teh"), new FamilyCondition("Son visits him every weekend"),
new Hobby("Plays erhu"),
getTagSet("diabetes", "skin irritation")),
new Patient(new PatientHospitalId("12349"), new Name("Irfan Ibrahim"), new PreferredName("Fan"),
new FoodPreference("Roti Prata"), new FamilyCondition("Children encountered accident 2 months ago"),
new Hobby("Plays badminton"),
getTagSet("tumour")),
new Patient(new PatientHospitalId("12350"), new Name("Roy Balakrishnan"), new PreferredName("Rony"),
new FoodPreference("Fish Ball Soup"), new FamilyCondition("Financial problem"),
new Hobby("Jog around park"),
getTagSet("wheelchair")),
return new Patient[]{

Check warning on line 24 in src/main/java/seedu/address/model/util/SampleDataUtil.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/model/util/SampleDataUtil.java#L24

Added line #L24 was not covered by tests
new Patient(new PatientHospitalId("12345"),
new Name("Alex Yeoh Jia Jun"),
new PreferredName("Alex"),
new FoodPreference("Curry chicken"),
new FamilyCondition("Stable, Has 2 sons that visits him regularly"),
new Hobby("Singing karaoke"),
getTagSet("diabetes"),
getEventSet(new String[]{"Birthday"}, new String[]{"20-01-2022"})),

Check warning on line 32 in src/main/java/seedu/address/model/util/SampleDataUtil.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/model/util/SampleDataUtil.java#L31-L32

Added lines #L31 - L32 were not covered by tests
new Patient(new PatientHospitalId("12346"),
new Name("Bernice Yu Sheng Huat"),
new PreferredName("Bern"),
new FoodPreference("Char Kuay Tiao, Black Carrot Cake"),
new FamilyCondition("Lives alone, no family members around"),
new Hobby("Playing Mahjong"),
getTagSet("high blood pressure"),
getEventSet(new String[]{"Family Visit"}, new String[]{"30-03-2022, 15:00 - 18:00"})),

Check warning on line 40 in src/main/java/seedu/address/model/util/SampleDataUtil.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/model/util/SampleDataUtil.java#L39-L40

Added lines #L39 - L40 were not covered by tests
new Patient(new PatientHospitalId("12347"),
new Name("Mary Jane"),
new PreferredName("Mary"),
new FoodPreference("Korean"),
new FamilyCondition("Lives with only daughter, quarrels regularly with daughter"),
new Hobby("Watching Drama"),
getTagSet("fall risk")),

Check warning on line 47 in src/main/java/seedu/address/model/util/SampleDataUtil.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/model/util/SampleDataUtil.java#L47

Added line #L47 was not covered by tests
new Patient(new PatientHospitalId("12348"),
new Name("David Li"),
new PreferredName("David"),
new FoodPreference("Bak Kut Teh"),
new FamilyCondition("Son visits him every weekend"),
new Hobby("Plays erhu"),
getTagSet("diabetes", "skin irritation")),

Check warning on line 54 in src/main/java/seedu/address/model/util/SampleDataUtil.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/model/util/SampleDataUtil.java#L54

Added line #L54 was not covered by tests
new Patient(new PatientHospitalId("12349"),
new Name("Irfan Ibrahim"),
new PreferredName("Fan"),
new FoodPreference("Roti Prata"),
new FamilyCondition("Children encountered accident 2 months ago"),
new Hobby("Plays badminton"),
getTagSet("tumour")),
new Patient(new PatientHospitalId("12350"),
new Name("Roy Balakrishnan"),
new PreferredName("Rony"),
new FoodPreference("Fish Ball Soup"),
new FamilyCondition("Financial problem"),
new Hobby("Jog around park"),
getTagSet("wheelchair")),
};
}

Expand Down

0 comments on commit 9ab63fc

Please sign in to comment.