109 Commits

Author SHA1 Message Date
MagneticMojo
41573608cb Register addToCart() and removeFromCart() implemented - NEED boolean return from ShoppingCart methods called 2023-10-13 16:03:41 +02:00
adsa4926
64c0e7eade La till en extra konstruktor i Item för att skapa EAN, formatterat teststrängar i shoppingcartest. 2023-10-13 15:35:46 +02:00
adsa4926
3b7a5c6a1d Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib 2023-10-13 15:17:14 +02:00
adsa4926
e1843dfcc4 temp solutions to test shoppingcart functions 2023-10-13 15:17:03 +02:00
adsa4926
422438bd9e Added tests for additem and removeitem 2023-10-13 15:16:39 +02:00
adsa4926
4031363cc0 Added addItem, removeItem and functionality required for those 2023-10-13 15:16:11 +02:00
nidorbRotkiv
f6f0ef1677 Adapter deleted, restore Register implementation 2023-10-13 14:58:06 +02:00
nidorbRotkiv
892bbed3a5 Mocking adapter for testing not implemented methods in ShoppingCart 2023-10-13 14:58:06 +02:00
adsa4926
13b34e3442 JAG HADE INTE SPARAT INNAN JAG PUSHA JAG ÄR DUM 2023-10-13 13:48:08 +02:00
adsa4926
3ec8616a17 Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib 2023-10-13 13:42:07 +02:00
adsa4926
cdb6be9fb4 formatted EAN class and fixed constructor for already created EAN 2023-10-13 13:42:01 +02:00
adsa4926
8cbb17a8a3 Formated the test code 2023-10-13 13:40:59 +02:00
MagneticMojo
6afae1449d Comments for future functionality in Register 2023-10-13 10:02:43 +02:00
adsa4926
c5123ebc06 Refactored EAN class + added checkdigit function 2023-10-13 09:48:02 +02:00
adsa4926
52887126d7 Fixed faulty tests.
Fixed several faulty tests that used the wrong testvalues before.
Added checkDigit to tests.
2023-10-13 09:46:37 +02:00
adsa4926
a4e5a569ee Added EAN.java
Made EAN class that passes all currently written tests in EANTest.java
2023-10-12 22:53:16 +02:00
adsa4926
a569ae0c33 Added tests for EAN Class
Test based of equivalence classes.
2023-10-12 22:46:42 +02:00
MagneticMojo
2300babb10 LineItem changed from record to class, mutability of field quantity needed by ShoppingCart 2023-10-12 18:52:22 +02:00
MagneticMojo
d14553da6c add cartCounter + getter in ShoppingCart 2023-10-12 16:29:33 +02:00
MagneticMojo
e058d0f7f3 equalsSame() added to ItemTest 2023-10-12 16:28:33 +02:00
MagneticMojo
018fe19b3e Register addToCart() impl with Optional, RegisterTest mock Scanner 2023-10-12 15:57:49 +02:00
MagneticMojo
f134484a70 CSV data column header updated to Scanner (was EAN) 2023-10-12 15:56:07 +02:00
MagneticMojo
6c4d8a96c5 Assortment remove serr prints, make getItem() return Optional 2023-10-12 15:54:32 +02:00
MagneticMojo
38a5de5460 renamed interface EAN to Scanner, removed ItemScanner and ItemScannerTest 2023-10-12 15:40:01 +02:00
MagneticMojo
33b131d680 add LineItem and LineItemTest 2023-10-12 12:16:34 +02:00
nidorbRotkiv
06cc2e1f07 Minor refactor 2023-10-11 21:08:51 +02:00
nidorbRotkiv
fbe806ccca Added tests for equals and hashCode in Item and ItemTest 2023-10-11 20:07:02 +02:00
nidorbRotkiv
9f8d485f95 Implemented testEquals in ItemTest 2023-10-11 19:22:43 +02:00
MagneticMojo
818fd0e476 Register and RegisterTest small updates 2023-10-11 19:19:50 +02:00
MagneticMojo
772151920b add ShoppingCart methods size() and addItem(), tests implemented in ShoppingCartTest 2023-10-11 18:11:11 +02:00
MagneticMojo
16832f9d87 ShoppingCart member fields made private final (ctr assignment) 2023-10-11 17:54:57 +02:00
MagneticMojo
8718399799 Mockito maven dependency added for mocking purposes 2023-10-11 17:33:22 +02:00
MagneticMojo
407401a196 interface EAN created for mocking purposes
If decided to be implemented, the EAN mock in RegisterTest should be substituted for the real object
2023-10-11 17:30:17 +02:00
MagneticMojo
0f5ba69718 add additional CSV testing files for AssortmentTest 2023-10-11 17:21:18 +02:00
MagneticMojo
1c0315f5a9 add updated Assortment and AssortmentTest 2023-10-11 17:20:16 +02:00
MagneticMojo
46228940ec add main/resources/ and test/resources, add Assortment cvs files for production and test
Csv files used to populate Assortment instances with items
2023-10-11 17:18:53 +02:00
MagneticMojo
2989eaeaad add Register, Assortment (and test classes), resources dir with items.csv 2023-10-11 15:44:23 +02:00
nidorbRotkiv
48a0559ae2 Added state for ItemScanner, so it can be turned on and off 2023-10-11 13:56:58 +02:00
nidorbRotkiv
7a6e809124 First version of ItemScanner and tests 2023-10-11 13:31:09 +02:00
nidorbRotkiv
d41e5f8cef Added equals and hashCode to Item 2023-10-11 13:31:09 +02:00
Homero
30191f69cd En påbörjad ShoppingCart med sitt testprogram. 2023-10-11 11:55:44 +02:00
nidorbRotkiv
55143a1aaa Added a letter to NON_ISO_88591_NAME to see if it can handle one ISO 2023-10-10 21:13:32 +02:00
MagneticMojo
8b1323fdb0 Item all present functionality tested 2023-10-10 14:58:12 +02:00
MagneticMojo
d18c171cd0 Equivalence partitions eval started for Item class 2023-10-10 13:00:35 +02:00
MagneticMojo
57a2e8333a Item class first test 2023-10-10 11:33:31 +02:00
MagneticMojo
4f69ce28e4 Money class last version 2023-10-10 11:28:01 +02:00
MagneticMojo
eaf8196667 Money temp done 2023-10-10 10:54:24 +02:00
MagneticMojo
36c47e074a added Money class and getValue() with TDD 2023-10-10 10:24:44 +02:00
MagneticMojo
9decabb361 removed Dummy class 2023-10-10 09:15:06 +02:00
MagneticMojo
51f1e119f6 updated TeamNotes.md and pom.xml 2023-10-10 09:04:14 +02:00