Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS2103T-T17-1] RHRH #150

Open
wants to merge 656 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
656 commits
Select commit Hold shift + click to select a range
a3492ef
Merge branch 'master' of https://github.com/clementkfj/tp into branch…
clementkfj Nov 2, 2021
7518012
Merge pull request #177 from clementkfj/branch-PE-Issues
Javiier-pzk Nov 2, 2021
13bc351
Update UserGuide.md
Javiier-pzk Nov 2, 2021
04555c4
Improve JUnit test for ResetSupplier/Customer/EmployeeSortCommand cla…
Javiier-pzk Nov 2, 2021
1eac3d2
Add more test cases to SortSupplierCommandParser class
Javiier-pzk Nov 2, 2021
af4bb87
Merge pull request #180 from Javiier-pzk/branch-sorting-JUnit-tests
clementkfj Nov 2, 2021
855ce34
Add Test cases and Fix CommandTestUtil
clementkfj Nov 2, 2021
257c973
Merge branch 'master' into branch-PE-Issues
clementkfj Nov 2, 2021
71c35d4
Fix Loyalty Points
clementkfj Nov 2, 2021
2414178
Fix leaves and UG details
clementkfj Nov 2, 2021
b8ed5e7
Make DateTimes more flexible
Javiier-pzk Nov 2, 2021
d0b811c
Merge pull request #181 from clementkfj/branch-PE-Issues
clementkfj Nov 2, 2021
265c86b
Merge pull request #182 from Javiier-pzk/branch-sorting-JUnit-tests
clementkfj Nov 2, 2021
43fdd10
change all instance of SPECIALREQUEST to SPECIAL_REQUEST
chetwinlow Nov 2, 2021
8e8bcb1
Add Test cases for Find
clementkfj Nov 2, 2021
fe26ce1
Merge pull request #186 from clementkfj/branch-Employee-testing
Javiier-pzk Nov 2, 2021
4ef98b4
change all instance of SPECIALREQUEST to SPECIAL_REQUEST, plus reform…
chetwinlow Nov 2, 2021
a4b1936
change all instance of SPECIALREQUEST to SPECIAL_REQUEST, plus reform…
chetwinlow Nov 2, 2021
4e840fc
change all instance of SPECIALREQUEST to SPECIAL_REQUEST, plus reform…
chetwinlow Nov 2, 2021
7f907c0
Merge pull request #183 from chetwinlow/branch-special-request-format…
Javiier-pzk Nov 2, 2021
fa756bd
Add JUnit tests for FindSupplierCommand and FindSupplierCommandParser…
Javiier-pzk Nov 2, 2021
bde8d26
Remove unused regex checkers
Javiier-pzk Nov 2, 2021
c125ff6
WOOHOO test casesssss
chetwinlow Nov 2, 2021
1c664e0
WOOHOO test casesssss
chetwinlow Nov 2, 2021
263c9f9
WOOHOO test casesssss
chetwinlow Nov 2, 2021
654fa23
Merge pull request #191 from Javiier-pzk/branch-findSupplier-JUnit-tests
chetwinlow Nov 2, 2021
e5b85d0
Merge branch 'master' into branch-sort-customer-testcases
chetwinlow Nov 2, 2021
fc76c1e
WOOHOO test casesssss
chetwinlow Nov 2, 2021
ea0b245
Merge remote-tracking branch 'origin/branch-sort-customer-testcases' …
chetwinlow Nov 2, 2021
d63188c
Merge pull request #189 from chetwinlow/branch-sort-customer-testcases
Javiier-pzk Nov 2, 2021
0b4802c
add flexible date time parse for reservation
pbthang Nov 3, 2021
745b6af
fix CI failed
pbthang Nov 3, 2021
f04e8cf
Merge pull request #192 from pbthang/UG-update
clementkfj Nov 3, 2021
6e29982
add test for edit reservation command
pbthang Nov 3, 2021
ca28f95
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 3, 2021
c1589b3
add test cases for edit reservation command
pbthang Nov 3, 2021
52a6b9f
Merge branch 'master' of https://github.com/pbthang/tp into reservati…
pbthang Nov 3, 2021
10b7386
Merge pull request #195 from pbthang/reservation-test
clementkfj Nov 3, 2021
1d450ea
Add PPP and fix error messages
clementkfj Nov 3, 2021
49b6864
Fix bugs
clementkfj Nov 3, 2021
f06772d
End of Line
clementkfj Nov 3, 2021
007bbff
Remove _
clementkfj Nov 3, 2021
e3157d8
Remove line for Javier
clementkfj Nov 3, 2021
18e60ea
Change User guide to be non developer brained
clementkfj Nov 3, 2021
14af3cf
Merge pull request #197 from clementkfj/branch-1.4-Bugs
Javiier-pzk Nov 3, 2021
718f639
Update UG
Javiier-pzk Nov 4, 2021
b166679
Update README.md
Javiier-pzk Nov 4, 2021
3152d19
Add overview and info about user guide
Javiier-pzk Nov 4, 2021
cf2d099
Refactor typical reservations and typical tables to another class
hernpiblo Nov 4, 2021
074e6b3
Replace AddressBook with Rhrh
clementkfj Nov 4, 2021
14b5411
Replace readme
clementkfj Nov 4, 2021
00c641c
Merge pull request #199 from hernpiblo/v1.4-test-code-quality
clementkfj Nov 4, 2021
2b08318
Merge branch 'clementkfj-branch-1.4-Bugs'
clementkfj Nov 4, 2021
efcc4e5
Fix conflicts
clementkfj Nov 4, 2021
cc1af55
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 4, 2021
a2f456b
Change address books in UG
clementkfj Nov 4, 2021
72e1891
Merge branch 'master' of https://github.com/pbthang/tp into reservati…
pbthang Nov 4, 2021
baca859
Merge pull request #201 from clementkfj/master
hernpiblo Nov 4, 2021
b41bec0
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 4, 2021
0306a39
Merge branch 'master' of https://github.com/pbthang/tp into reservati…
pbthang Nov 4, 2021
635ff13
Create PPP for javiier-pzk
Javiier-pzk Nov 4, 2021
8720bf2
Merge pull request #202 from Javiier-pzk/branch-PPP-and-documenation
clementkfj Nov 4, 2021
ab20898
Merge branch 'master' of https://github.com/Javiier-pzk/tp
Javiier-pzk Nov 4, 2021
27e826e
Update UserGuide.md
Javiier-pzk Nov 4, 2021
daf3904
Update AboutUs.md
Javiier-pzk Nov 4, 2021
39a1362
Change file name
Javiier-pzk Nov 4, 2021
2635c7d
Revert "Change file name"
Javiier-pzk Nov 4, 2021
580cddb
add PPP for pbthang
pbthang Nov 4, 2021
a594b0e
Rename javiier-pzk PPP file
Javiier-pzk Nov 4, 2021
fb138f7
Merge pull request #203 from Javiier-pzk/branch-PPP-and-documenation
clementkfj Nov 4, 2021
fb31808
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
Javiier-pzk Nov 4, 2021
128e4ac
Merge pull request #204 from pbthang/reservation-test
clementkfj Nov 4, 2021
92ef917
Update AboutUs.md
Javiier-pzk Nov 4, 2021
dab5259
Update javiier-pzk.md
Javiier-pzk Nov 4, 2021
53e595e
Edit format in javiier-pzk
Javiier-pzk Nov 4, 2021
7ad7077
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 4, 2021
8869dc0
Merge pull request #205 from Javiier-pzk/branch-PPP-and-documenation
clementkfj Nov 4, 2021
1bc6c15
Shift Documentation to the bottom
Javiier-pzk Nov 4, 2021
3f0a07d
Change formatting
Javiier-pzk Nov 4, 2021
2b6baf0
Fix settables html issue
hernpiblo Nov 4, 2021
1bbd3ff
Merge pull request #206 from Javiier-pzk/branch-PPP-and-documenation
clementkfj Nov 4, 2021
3505b6d
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
Javiier-pzk Nov 4, 2021
b45bcd0
Merge pull request #207 from Javiier-pzk/master
pbthang Nov 4, 2021
decbfd2
Update ReadME.md links
Javiier-pzk Nov 4, 2021
673f218
Update javiier-pzk.md
Javiier-pzk Nov 4, 2021
b861139
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 4, 2021
c6dbe4d
First draft of AddEmployee DG
clementkfj Nov 4, 2021
90cdc33
Add EOF
clementkfj Nov 4, 2021
3921d16
Merge pull request #208 from clementkfj/branch-DG-UML
Javiier-pzk Nov 4, 2021
d154a22
Add Sequence diagrams for DeleteSupplier and SortSupplier Commands
Javiier-pzk Nov 4, 2021
7d71a0a
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp…
Javiier-pzk Nov 4, 2021
d06958e
Add PPP
hernpiblo Nov 4, 2021
224bf79
add class diagram and sequence diagram for reserve command
pbthang Nov 4, 2021
b833c69
Edit deleteSupplier sequence diagram
Javiier-pzk Nov 4, 2021
2fbf6aa
Add DeleteSupplierCommand and SortSupplierCommand class diagram
Javiier-pzk Nov 4, 2021
c8725bd
add new line at EOF
pbthang Nov 4, 2021
7a914ab
Add DeleteSupplier and SortSupplier Implementation in DG
Javiier-pzk Nov 4, 2021
b20adb1
Add settables DG and activity and sequence diagrams
hernpiblo Nov 4, 2021
1b622d3
Merge pull request #210 from pbthang/master
hernpiblo Nov 4, 2021
c8152e0
Reformat paragraphs for DeleteSupplier and SortSupplier in DG
Javiier-pzk Nov 4, 2021
1a04ae9
Add new line at EOF
Javiier-pzk Nov 4, 2021
e239378
Add bug count to javiier-pzk
Javiier-pzk Nov 4, 2021
59c9825
Fix english LOL
Javiier-pzk Nov 4, 2021
42c82c1
Merge pull request #213 from hernpiblo/v1.4-ppp-uml
Javiier-pzk Nov 4, 2021
9c3c9cf
Merge pull request #214 from Javiier-pzk/branch-UML-diagrams
clementkfj Nov 5, 2021
d0fbc85
Update DeveloperGuide.md
clementkfj Nov 5, 2021
8f2b101
Update DeveloperGuide.md
clementkfj Nov 5, 2021
4e933ce
Update DeveloperGuide.md
clementkfj Nov 5, 2021
21a1e41
Improve Diagrams
clementkfj Nov 5, 2021
b61014b
FindCustomerCommandActivityDiagram.puml, FindCustomerCommandSequenceD…
chetwinlow Nov 5, 2021
0b48013
FindCustomerCommandActivityDiagram.puml, FindCustomerCommandSequenceD…
chetwinlow Nov 5, 2021
d49f946
FindCustomerCommandActivityDiagram.puml, FindCustomerCommandSequenceD…
chetwinlow Nov 5, 2021
d05e8c4
FindCustomerCommandActivityDiagram.puml, FindCustomerCommandSequenceD…
chetwinlow Nov 5, 2021
7bc7e42
Merge pull request #217 from clementkfj/branch-DG-UML
Javiier-pzk Nov 5, 2021
4bc38bb
Change picture size
clementkfj Nov 5, 2021
5152b94
Merge pull request #220 from clementkfj/branch-DG-UML
Javiier-pzk Nov 5, 2021
579aa30
Findcustomer section of DG updated, with diagrams and write up
chetwinlow Nov 5, 2021
4263b49
Merge pull request #221 from chetwinlow/branch-find-customer-diagrams
Javiier-pzk Nov 5, 2021
5f57d56
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 5, 2021
669cc58
Reformat the DG and fill in TBC portions of the PPP
hernpiblo Nov 5, 2021
4286a4b
Improve formatting of DG
hernpiblo Nov 5, 2021
ec6f527
Fix settables section in DG
hernpiblo Nov 5, 2021
58f081a
Improve Diagrams and format
clementkfj Nov 5, 2021
dbfb3d4
Fix PPP
clementkfj Nov 5, 2021
6103663
add differences of reserve command in DG
pbthang Nov 5, 2021
5334103
Merge pull request #225 from pbthang/DG-update
clementkfj Nov 5, 2021
ba6d860
Merge pull request #223 from clementkfj/branch-DG-UML
Javiier-pzk Nov 5, 2021
41930d8
Change header from future to alternative implementations
hernpiblo Nov 5, 2021
913623f
Merge pull request #222 from hernpiblo/v1.4-dg-improvement
clementkfj Nov 5, 2021
e795d5e
Add UML note to Delete and Sort sequence diagrams
Javiier-pzk Nov 5, 2021
04d4d1e
Add SortSupplierCommand and DeleteSupplierCommand Activity Diagrams
Javiier-pzk Nov 5, 2021
6e1af28
Update DG with diagrams, reformat diagrams and update javiier-pzk PPP
Javiier-pzk Nov 5, 2021
7d13c6a
Merge pull request #226 from Javiier-pzk/branch-UML-diagrams
Javiier-pzk Nov 5, 2021
54071d5
Update javiier-pzk.md
Javiier-pzk Nov 5, 2021
c5f9275
split Model class diagram into 2 smaller diagrams
pbthang Nov 5, 2021
4bc0a6a
Merge branch 'master' of https://github.com/pbthang/tp into DG-update
pbthang Nov 5, 2021
5946ebb
add get corresponding customer command to DG
pbthang Nov 5, 2021
f870cc9
Updated FindCommand diagrams
chetwinlow Nov 6, 2021
856edc3
Updated EditCommand diagrams
chetwinlow Nov 6, 2021
7ac93f8
fix image error in DG
pbthang Nov 6, 2021
5d2be8d
Updated EditCommand diagrams
chetwinlow Nov 6, 2021
c288e7a
Merge pull request #228 from chetwinlow/branch-update-findcust-diagram
Javiier-pzk Nov 6, 2021
fff88fa
Merge pull request #227 from pbthang/DG-update
chetwinlow Nov 6, 2021
38cdff5
add edit reservation part to DG
pbthang Nov 6, 2021
a76d3e1
Updated FindCommand and EditCommand diagrams and DG
chetwinlow Nov 6, 2021
24070f9
Merge pull request #230 from chetwinlow/branch-find-edit-class-diags
Javiier-pzk Nov 6, 2021
94d09bb
Merge pull request #229 from pbthang/DG-update
Javiier-pzk Nov 6, 2021
5ec5029
added PPP
chetwinlow Nov 6, 2021
e7b03fd
added PPP
chetwinlow Nov 6, 2021
8346f1b
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 6, 2021
a412fd9
added PPP
chetwinlow Nov 6, 2021
511cf79
Merge pull request #231 from chetwinlow/branch-update-ppp
Javiier-pzk Nov 6, 2021
ab3d912
Change activity diagram to standardize
hernpiblo Nov 6, 2021
965f8d1
Update settables sequence diagram to include a note
hernpiblo Nov 6, 2021
23174da
Merge pull request #232 from hernpiblo/v1.4-uml-fix
Javiier-pzk Nov 6, 2021
cbb0a7d
Fix Diagrams for standardisation
clementkfj Nov 6, 2021
a96f933
update sequence diagram for get customer reserving command
pbthang Nov 6, 2021
5802519
Merge pull request #233 from clementkfj/branch-DG-UML
Javiier-pzk Nov 6, 2021
cf83959
Merge branch 'master' of https://github.com/pbthang/tp into DG-update
pbthang Nov 6, 2021
75cfb6d
edit ppp link in AbouUs.md
pbthang Nov 6, 2021
0ca5337
Merge pull request #234 from pbthang/DG-update
Javiier-pzk Nov 6, 2021
1ff6b3a
reformat DG
chetwinlow Nov 6, 2021
71b5da1
Merge pull request #235 from chetwinlow/branch-reformat-DG
Javiier-pzk Nov 6, 2021
6d3026a
Fix bug
clementkfj Nov 6, 2021
d476ae1
reformat DG
chetwinlow Nov 6, 2021
83d439c
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp…
clementkfj Nov 6, 2021
0704b81
Merge fix
chetwinlow Nov 6, 2021
c6e1ea4
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp…
chetwinlow Nov 6, 2021
652a631
Merge pull request #237 from chetwinlow/branch-reformat-DG
Javiier-pzk Nov 6, 2021
57ffe2a
Fix format
clementkfj Nov 6, 2021
4e2b920
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 6, 2021
4409a60
Fix formatting
clementkfj Nov 6, 2021
b46479e
Update UserGuide.md
Javiier-pzk Nov 6, 2021
294f056
Update UserGuide.md
Javiier-pzk Nov 6, 2021
c3c8a3b
Final formatting checks
clementkfj Nov 6, 2021
bd01d73
Update UserGuide.md
Javiier-pzk Nov 6, 2021
88ae9fa
Merge pull request #238 from clementkfj/branch-DG-UML
Javiier-pzk Nov 6, 2021
5a41e38
Fix font size for sequence diagrams
hernpiblo Nov 6, 2021
49776d0
Update clementkfj.md
clementkfj Nov 6, 2021
e6ac405
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp…
hernpiblo Nov 6, 2021
900e9cf
Fix formatting
hernpiblo Nov 6, 2021
fe3762d
Update UserGuide.md
Javiier-pzk Nov 6, 2021
051b922
Merge pull request #239 from hernpiblo/v1.4-uml-font
clementkfj Nov 6, 2021
6bbd2b4
Update UserGuide.md
Javiier-pzk Nov 6, 2021
12d52c5
Update UserGuide.md
Javiier-pzk Nov 6, 2021
f547fa3
Fix uml diagrams
hernpiblo Nov 6, 2021
6a84f66
Fix uml for undoredo
hernpiblo Nov 6, 2021
caed24a
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp…
hernpiblo Nov 6, 2021
9d4f7ab
Change diagram
hernpiblo Nov 6, 2021
00d51bc
Add javadocs for classes
hernpiblo Nov 6, 2021
e3b0ffb
Merge pull request #240 from hernpiblo/uml-fix2
Javiier-pzk Nov 6, 2021
3bff84f
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 6, 2021
237ebb4
Update DeveloperGuide.md
Javiier-pzk Nov 6, 2021
b0ce806
Update _base.scss
hernpiblo Nov 6, 2021
9177e9d
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 6, 2021
3d486c1
Update hernpiblo.md
hernpiblo Nov 6, 2021
6e6b919
Update UserGuide.md
Javiier-pzk Nov 7, 2021
4f45b93
update test cases for DG
pbthang Nov 7, 2021
0b8424d
Update UserGuide.md
Javiier-pzk Nov 7, 2021
84a3d5c
Add manual testing and use case
clementkfj Nov 7, 2021
77382ed
edit UG and update test case for addr in DG
pbthang Nov 7, 2021
da5e9fc
Merge branch 'master' into DG-update
pbthang Nov 7, 2021
85fe174
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 7, 2021
3ab21f0
Merge pull request #242 from clementkfj/branch-DG-Appendix
pbthang Nov 7, 2021
53fcebb
Merge branch 'master' of https://github.com/pbthang/tp into DG-update
pbthang Nov 7, 2021
784a9ae
Merge pull request #241 from pbthang/DG-update
pbthang Nov 7, 2021
84bb108
Merge branch 'master' of https://github.com/pbthang/tp into DG-update
pbthang Nov 7, 2021
3cd2ca4
add use case for add and edit reservation
pbthang Nov 7, 2021
de7cd66
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 7, 2021
e5717c9
update pbthang PPP
pbthang Nov 7, 2021
8457963
Merge pull request #247 from pbthang/DG-update
Javiier-pzk Nov 7, 2021
560d208
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp
hernpiblo Nov 7, 2021
17fc9a4
Standardise and improve existing use cases
Javiier-pzk Nov 7, 2021
044aa22
Add Delete and Sort Use cases
Javiier-pzk Nov 7, 2021
3a8ec3b
Update dg to include new use cases, test cases and glossary
hernpiblo Nov 7, 2021
c3d062e
Update ppp
hernpiblo Nov 7, 2021
d2ca172
Replace status bar with result display in DG
hernpiblo Nov 7, 2021
54d748e
Add Manual Test cases in DG
Javiier-pzk Nov 7, 2021
a7540f2
Edit DG
Javiier-pzk Nov 7, 2021
5fffe84
Add new line to EOF
Javiier-pzk Nov 7, 2021
041e30b
Change RHRH file path
Javiier-pzk Nov 7, 2021
55dfb11
Merge pull request #251 from Javiier-pzk/branch-DG-UseCases-manualTes…
pbthang Nov 7, 2021
b367f6a
Merge branch 'master' of https://github.com/AY2122S1-CS2103T-T17-1/tp…
hernpiblo Nov 8, 2021
8565b9a
Merge pull request #250 from hernpiblo/v1.4b-dg-usecase-testcase
pbthang Nov 8, 2021
6a75c5b
Update clementkfj.md
clementkfj Nov 8, 2021
31717a7
Updated Find usecases and Find, Edit manual testing
chetwinlow Nov 8, 2021
041bedb
Updated list and reset command manual testing
chetwinlow Nov 8, 2021
090e48a
Updated list and reset command use case
chetwinlow Nov 8, 2021
008b745
Updated list and reset command use case
chetwinlow Nov 8, 2021
33520f1
Merge pull request #254 from chetwinlow/branch-update-DG-find-edit-ma…
hernpiblo Nov 8, 2021
0ef01fb
Update hernpiblo.md
hernpiblo Nov 8, 2021
3e1fd0c
fix use cases and add new use cases
pbthang Nov 8, 2021
2d35902
format things in DG
pbthang Nov 8, 2021
527ff03
update DG use case index
pbthang Nov 8, 2021
7fa472f
Merge pull request #255 from pbthang/DG-update
Javiier-pzk Nov 8, 2021
a2d1993
fix things
pbthang Nov 8, 2021
38e7e76
fix gthings
pbthang Nov 8, 2021
fe574c4
fix typo
pbthang Nov 8, 2021
c1ef659
Merge pull request #256 from pbthang/DG-update
Javiier-pzk Nov 8, 2021
4586779
Final cosmetic changes to DG and update javiier-pzk PPP
Javiier-pzk Nov 8, 2021
774578e
Edit numbering
Javiier-pzk Nov 8, 2021
80c29fd
Merge pull request #257 from Javiier-pzk/branch-DG-UseCases-manualTes…
pbthang Nov 8, 2021
b865674
Update DeveloperGuide.md
Javiier-pzk Nov 8, 2021
b8d61dc
change fontsize for UI Class diagram
pbthang Nov 8, 2021
c671a4f
fix size of UI class diagram
pbthang Nov 8, 2021
627a53d
Merge pull request #258 from pbthang/DG-update
Javiier-pzk Nov 8, 2021
f85a3dd
Update DeveloperGuide.md
Javiier-pzk Nov 8, 2021
a4bf235
Update javiier-pzk.md
Javiier-pzk Nov 8, 2021
5ff3bce
Update UserGuide.md
hernpiblo Nov 8, 2021
456a1ef
Update UserGuide.md
hernpiblo Nov 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor typical reservations and typical tables to another class
  • Loading branch information
hernpiblo committed Nov 4, 2021
commit cf2d099161f771c82c9172aa4b56244f96e61f2a
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/table/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Table(int numOfSeats, int tableId) {
* Checks if this table can accommodate specified number of customers
*/
public boolean canFit(int numOfCustomers) {
return numOfCustomers <= numOfSeats;
return numOfCustomers <= numOfSeats && numOfCustomers > 0;
}

public int getTableId() {
Expand Down
40 changes: 15 additions & 25 deletions src/test/java/seedu/address/logic/commands/CheckCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.ReservationCommandTestUtil.assertCommandSuccess;
import static seedu.address.logic.parser.ParserUtil.DATE_FORMATTER;
import static seedu.address.logic.parser.ParserUtil.TIME_FORMATTER;
import static seedu.address.testutil.TypicalCustomers.CUSTOMER_ALICE;
import static seedu.address.testutil.TypicalCustomers.CUSTOMER_BOB;
import static seedu.address.testutil.TypicalCustomers.getTypicalAddressBookCustomers;
import static seedu.address.testutil.TypicalReservation.ALICE_RESERVATION;
import static seedu.address.testutil.TypicalReservation.BENSON_RESERVATION;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Collections;
import java.util.Set;

import org.junit.jupiter.api.Test;

Expand All @@ -25,25 +23,17 @@
import seedu.address.model.UserPrefs;
import seedu.address.model.reservation.CustomerContainsReservationPredicate;
import seedu.address.model.reservation.ListContainsReservationPredicate;
import seedu.address.model.reservation.Remark;
import seedu.address.model.reservation.Reservation;
import seedu.address.model.table.Table;

class CheckCommandTest {
private LocalDate date1 = LocalDate.parse("2021-01-01", DATE_FORMATTER);
private LocalDate date2 = LocalDate.parse("2021-02-02", DATE_FORMATTER);
private LocalTime time = LocalTime.parse("1200", TIME_FORMATTER);
private LocalDate date1 = ALICE_RESERVATION.getDateTime().toLocalDate();
private LocalDate date2 = BENSON_RESERVATION.getDateTime().toLocalDate();
private LocalTime time = ALICE_RESERVATION.getDateTime().toLocalTime();
private EnumTypeOfCheck typeOfCheck = EnumTypeOfCheck.DateTime;
private Model model = new ModelManager(getTypicalAddressBookCustomers(), new UserPrefs());
private Model resultModel = new ModelManager(getTypicalAddressBookCustomers(), new UserPrefs());
private Table table1 = new Table(5, 10);
private Table table2 = new Table(10, 11);
private Reservation reservation1 = new Reservation(
CUSTOMER_ALICE.getPhone(), 5, LocalDateTime.of(date1, time), table1, new Remark(""), Set.of()
);
private Reservation reservation2 = new Reservation(
CUSTOMER_BOB.getPhone(), 10, LocalDateTime.of(date2, time), table2, new Remark(""), Set.of()
);
private Reservation reservation1 = ALICE_RESERVATION;
private Reservation reservation2 = BENSON_RESERVATION;

@Test
void execute_validDateTime_success() {
Expand Down Expand Up @@ -84,23 +74,23 @@ void testEquals() {
ListContainsReservationPredicate predicate1 = new ListContainsReservationPredicate(date1, time, typeOfCheck);
ListContainsReservationPredicate predicate2 = new ListContainsReservationPredicate(date2, time, typeOfCheck);

CheckCommand findFirstCommand = new CheckCommand(predicate1);
CheckCommand findSecondCommand = new CheckCommand(predicate2);
CheckCommand checkFirstCommand = new CheckCommand(predicate1);
CheckCommand checkSecondCommand = new CheckCommand(predicate2);

// same object -> returns true
assertTrue(findFirstCommand.equals(findFirstCommand));
assertTrue(checkFirstCommand.equals(checkFirstCommand));

// same values -> returns true
CheckCommand findFirstCommandCopy = new CheckCommand(predicate1);
assertTrue(findFirstCommand.equals(findFirstCommandCopy));
CheckCommand checkFirstCommandCopy = new CheckCommand(predicate1);
assertTrue(checkFirstCommand.equals(checkFirstCommandCopy));

// different types -> returns false
assertFalse(findFirstCommand.equals(1));
assertFalse(checkFirstCommand.equals(1));

// null -> returns false
assertFalse(findFirstCommand.equals(null));
assertFalse(checkFirstCommand.equals(null));

// different command -> returns false
assertFalse(findFirstCommand.equals(findSecondCommand));
assertFalse(checkFirstCommand.equals(checkSecondCommand));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.TypicalCustomers.getTypicalAddressBookCustomers;
import static seedu.address.testutil.TypicalTables.DUMMY_LIST_OF_TABLES;
import static seedu.address.testutil.TypicalTables.DUMMY_LIST_OF_TABLE_SIZES;
import static seedu.address.testutil.TypicalTables.DUMMY_TABLE_1;
import static seedu.address.testutil.TypicalTables.DUMMY_TABLE_2;
import static seedu.address.testutil.TypicalTables.DUMMY_TABLE_3;
import static seedu.address.testutil.TypicalTables.DUMMY_TABLE_4;
import static seedu.address.testutil.TypicalTables.DUMMY_TABLE_5;

import java.util.Arrays;
import java.util.List;
Expand All @@ -13,7 +20,6 @@
import seedu.address.model.Model;
import seedu.address.model.ModelManager;
import seedu.address.model.UserPrefs;
import seedu.address.model.table.Table;


class SetTablesCommandTest {
Expand All @@ -26,31 +32,23 @@ public void constructor_nullArgument_throwsNullPointerException() {

@Test
public void execute_validListOfTableSizes_addSuccessful() throws Exception {
List<Integer> tableSizeList = Arrays.asList(1, 2, 3, 4, 5);
List<Table> tableList = Arrays.asList(
new Table(1, 1),
new Table(2, 2),
new Table(3, 3),
new Table(4, 4),
new Table(5, 5)
);
SetTablesCommand command = new SetTablesCommand(tableSizeList);
model.setTableList(tableList);
SetTablesCommand command = new SetTablesCommand(DUMMY_LIST_OF_TABLE_SIZES);
model.setTableList(DUMMY_LIST_OF_TABLES);

command.execute(model);

assertTrue(model.hasTable(new Table(1, 1)));
assertTrue(model.hasTable(new Table(2, 2)));
assertTrue(model.hasTable(new Table(3, 3)));
assertTrue(model.hasTable(new Table(4, 4)));
assertTrue(model.hasTable(new Table(5, 5)));
assertTrue(model.hasTable(DUMMY_TABLE_1));
assertTrue(model.hasTable(DUMMY_TABLE_2));
assertTrue(model.hasTable(DUMMY_TABLE_3));
assertTrue(model.hasTable(DUMMY_TABLE_4));
assertTrue(model.hasTable(DUMMY_TABLE_5));
}

@Test
public void equals() {

List<Integer> list1 = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
List<Integer> list2 = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
List<Integer> list1 = DUMMY_LIST_OF_TABLE_SIZES;
List<Integer> list2 = Arrays.asList(1, 2, 3, 4, 5);

SetTablesCommand setTablesCommand = new SetTablesCommand(list1);
SetTablesCommand setTablesCommandCopied = new SetTablesCommand(list2);
Expand All @@ -68,6 +66,6 @@ public void equals() {
assertFalse(setTablesCommand.equals(null));

// different list values -> returns false
assertFalse(setTablesCommand.equals(new SetTablesCommand(Arrays.asList(99, 2, 3, 4, 5, 6, 7, 8, 9, 10))));
assertFalse(setTablesCommand.equals(new SetTablesCommand(Arrays.asList(99, 2, 3, 4, 5))));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,26 @@

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.time.LocalDateTime;
import java.util.Set;
import static seedu.address.testutil.TypicalReservation.ALICE_RESERVATION;
import static seedu.address.testutil.TypicalReservation.BENSON_RESERVATION;

import org.junit.jupiter.api.Test;

import javafx.collections.transformation.FilteredList;
import seedu.address.model.person.Phone;
import seedu.address.model.person.customer.Customer;
import seedu.address.model.table.Table;
import seedu.address.model.tag.Tag;
import seedu.address.testutil.CustomerBuilder;

class CustomerContainsReservationPredicateTest {

@Test
void testEquals() {
int numberOfCustomer = 5;
LocalDateTime dateTime = LocalDateTime.parse("2020-10-10T19:00");

Phone phone1 = new Phone("99999999");
Table table1 = new Table(5, 10);
Remark remark = new Remark("");
Set<Tag> tags = Set.of();
Reservation reservation1 = new Reservation(phone1, numberOfCustomer, dateTime, table1, remark, tags);
ReservationList reservationList1 = new ReservationList();
reservationList1.add(reservation1);
reservationList1.add(ALICE_RESERVATION);
FilteredList<Reservation> filteredList1 = new FilteredList<>(reservationList1.asUnmodifiableObservableList());
CustomerContainsReservationPredicate predicate1 = new CustomerContainsReservationPredicate(filteredList1);

Phone phone2 = new Phone("88888888");
Table table2 = new Table(5, 11);
Reservation reservation2 = new Reservation(phone2, numberOfCustomer, dateTime, table2, remark, tags);
ReservationList reservationList2 = new ReservationList();
reservationList2.add(reservation2);
reservationList2.add(BENSON_RESERVATION);
FilteredList<Reservation> filteredList2 = new FilteredList<>(reservationList2.asUnmodifiableObservableList());
CustomerContainsReservationPredicate predicate2 =
new CustomerContainsReservationPredicate(filteredList2);
Expand All @@ -61,37 +46,21 @@ void testEquals() {

@Test
void test_customerPhoneNumberMatchReservation_returnTrue() {
int numberOfCustomer = 5;
LocalDateTime dateTime = LocalDateTime.parse("2020-10-10T19:00");

Phone phone = new Phone("99999999");
Table table = new Table(5, 10);
Remark remark = new Remark("");
Set<Tag> tags = Set.of();
Reservation reservation = new Reservation(phone, numberOfCustomer, dateTime, table, remark, tags);
ReservationList reservationList = new ReservationList();
reservationList.add(reservation);
reservationList.add(ALICE_RESERVATION);
FilteredList<Reservation> filteredList = new FilteredList<>(reservationList.asUnmodifiableObservableList());
CustomerContainsReservationPredicate predicate =
new CustomerContainsReservationPredicate(filteredList);
Customer customer = new CustomerBuilder().withPhone("99999999").build();
Customer customer = new CustomerBuilder().withPhone(ALICE_RESERVATION.getPhone().toString()).build();

// Person's phone number matches the phone number in the reservation
assertTrue(predicate.test(customer));
}

@Test
void test_customerPhoneNumberDoesNotMatchReservation_returnFalse() {
int numberOfCustomer = 5;
LocalDateTime dateTime = LocalDateTime.parse("2020-10-10T19:00");

Phone phone = new Phone("99999999");
Table table = new Table(5, 10);
Remark remark = new Remark("");
Set<Tag> tags = Set.of();
Reservation reservation = new Reservation(phone, numberOfCustomer, dateTime, table, remark, tags);
ReservationList reservationList = new ReservationList();
reservationList.add(reservation);
reservationList.add(ALICE_RESERVATION);
FilteredList<Reservation> filteredList = new FilteredList<>(reservationList.asUnmodifiableObservableList());
CustomerContainsReservationPredicate predicate =
new CustomerContainsReservationPredicate(filteredList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.TypicalReservation.ALICE_RESERVATION;
import static seedu.address.testutil.TypicalReservation.BENSON_RESERVATION;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Set;

import org.junit.jupiter.api.Test;
Expand All @@ -17,13 +17,13 @@
import seedu.address.model.tag.Tag;

class ListContainsReservationPredicateTest {
private LocalDate date1 = LocalDate.parse("2021-01-01", DateTimeFormatter.ofPattern("yyyy-MM-dd"));
private LocalDate date2 = LocalDate.parse("2021-02-02", DateTimeFormatter.ofPattern("yyyy-MM-dd"));
private LocalTime time = LocalTime.parse("1200", DateTimeFormatter.ofPattern("HHmm"));
private LocalDate date1 = ALICE_RESERVATION.getDateTime().toLocalDate();
private LocalDate date2 = BENSON_RESERVATION.getDateTime().toLocalDate();
private LocalTime time = ALICE_RESERVATION.getDateTime().toLocalTime();
private Phone phone = ALICE_RESERVATION.getPhone();
private EnumTypeOfCheck typeOfCheck = EnumTypeOfCheck.DateTime;
private Phone phone = new Phone("98765432");
private int numberOfPeople = 5;
private Table table = new Table(numberOfPeople, 10);
private int numberOfPeople = ALICE_RESERVATION.getNumberOfPeople();
private Table table = new Table(numberOfPeople, ALICE_RESERVATION.getTableId());
private Remark remark = new Remark("");
private Set<Tag> tags = Set.of();

Expand Down Expand Up @@ -52,47 +52,41 @@ void testEquals() {

@Test
void test_reservationDateTimeMatch_returnsTrue() {
Reservation reservation = new Reservation(phone, numberOfPeople,
LocalDateTime.parse("2021-01-01 1900", DateTimeFormatter.ofPattern("yyyy-MM-dd HHmm")),
table, remark, tags);
ListContainsReservationPredicate predicate;

// Matching date and time in query containing both date and time
predicate = new ListContainsReservationPredicate(LocalDate.parse("2021-01-01"), LocalTime.parse("19:00"),
predicate = new ListContainsReservationPredicate(date1, time,
EnumTypeOfCheck.DateTime);
assertTrue(predicate.test(reservation));
assertTrue(predicate.test(ALICE_RESERVATION));

// Matching date in query containing only date
predicate = new ListContainsReservationPredicate(LocalDate.parse("2021-01-01"), LocalTime.parse("23:00"),
predicate = new ListContainsReservationPredicate(date1, time,
EnumTypeOfCheck.Date);
assertTrue(predicate.test(reservation));
assertTrue(predicate.test(ALICE_RESERVATION));
}

@Test
void test_reservationDateTimeNoMatch_returnsFalse() {
Reservation reservation = new Reservation(phone, numberOfPeople,
LocalDateTime.parse("2021-01-01 1900", DateTimeFormatter.ofPattern("yyyy-MM-dd HHmm")),
table, remark, tags);
ListContainsReservationPredicate predicate;

// Not matching date and time in query containing both date and time
predicate = new ListContainsReservationPredicate(LocalDate.parse("2021-12-12"), LocalTime.parse("23:00"),
predicate = new ListContainsReservationPredicate(LocalDate.parse("2000-12-12"), LocalTime.parse("23:00"),
EnumTypeOfCheck.DateTime);
assertFalse(predicate.test(reservation));
assertFalse(predicate.test(ALICE_RESERVATION));

// Not matching date and matching time in query containing both date and time
predicate = new ListContainsReservationPredicate(LocalDate.parse("2021-12-12"), LocalTime.parse("19:00"),
predicate = new ListContainsReservationPredicate(LocalDate.parse("2000-12-12"),
ALICE_RESERVATION.getDateTime().toLocalTime(),
EnumTypeOfCheck.DateTime);
assertFalse(predicate.test(reservation));
assertFalse(predicate.test(ALICE_RESERVATION));

// Matching date and not matching time in query containing both date and time
predicate = new ListContainsReservationPredicate(LocalDate.parse("2021-01-01"), LocalTime.parse("23:00"),
predicate = new ListContainsReservationPredicate(ALICE_RESERVATION.getDateTime().toLocalDate(),
LocalTime.parse("23:00"),
EnumTypeOfCheck.DateTime);
assertFalse(predicate.test(reservation));
assertFalse(predicate.test(ALICE_RESERVATION));

// Not matching date in query containing only date
predicate = new ListContainsReservationPredicate(LocalDate.parse("2021-01-02"), LocalTime.parse("19:00"),
predicate = new ListContainsReservationPredicate(LocalDate.parse("2000-01-02"), LocalTime.parse("23:00"),
EnumTypeOfCheck.Date);
assertFalse(predicate.test(reservation));
assertFalse(predicate.test(ALICE_RESERVATION));
}
}
Loading