83103dbd4bMer små ändringar baserat på Granskningen.
Homero
2023-10-20 12:44:04 +02:00
613f7fd351Små ändringar baserat på granskningen
Homero
2023-10-20 12:03:28 +02:00
80b2535334ShoppingCart - tester för de getIsPaid() och setPaid()
Homero
2023-10-20 11:36:08 +02:00
d695631eacEAN & category is now represented by their own classes Fixed tests and classes that are affected by these changes
adsa4926
2023-10-19 15:09:53 +02:00
3c8448f183Category.java - Enum som representerar kategori
adsa4926
2023-10-19 15:05:32 +02:00
f973320c33Item.java - Added function to retrieve how much of total price is VAT
adsa4926
2023-10-18 11:58:44 +02:00
64260ce956Item.java - Added category to constructor. Added category to all tests that create items so they run
adsa4926
2023-10-18 09:36:31 +02:00
3b147c8820Item.java, removed the constructor w/o EAN Fixed all the test classes that were using that constructor so it now uses the one that assigns EAN
adsa4926
2023-10-18 08:16:46 +02:00
6989dae649RegisterTest, added test for Register pay(), createReceipt() and logReceipt, updated tests to handle ctr injection of ReceiptLedger
MagneticMojo
2023-10-17 16:45:48 +02:00
812b3c8b9bRegister, added field ReceiptLedger to store receipt instances (dependecy injected in ctr), and methods pay(), createReceipt() and logReceipt()
MagneticMojo
2023-10-17 16:40:18 +02:00
c594a293a9ReceiptRepository interface and concrete implementation ReceiptLedger added for use in Register.logReceipt()
MagneticMojo
2023-10-17 16:38:15 +02:00
6807d2d5dfRegister, added method pay() sets the boolean isPaid in ShoppingCart to true.
nidorbRotkiv
2023-10-17 14:18:06 +02:00
2f4081c97aShoppingCart, added boolean isPaid. Changed name from completePurchase to getLineItemsForPaidPurchase. getLineItemsForPaidPurchase also has a check for isPaid now.
nidorbRotkiv
2023-10-17 14:14:01 +02:00
602ff4c845Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
Homero
2023-10-17 11:53:19 +02:00
a8dce3f198ShoppingCartTest - testmetoder som räknar antal Items och antal LineItems i avslutad varukorg.
Homero
2023-10-17 11:52:52 +02:00
2ba3f8cff5added setter for field scanningCompleted
MagneticMojo
2023-10-16 15:40:13 +02:00
aae4646572ShoppingCart test&kod ny metod getTotalPriceInOre - returnerar Long.
Homero
2023-10-16 14:26:05 +02:00
382ea3f9e0refactored Register addToCart() and removeFromCart() parameter from long to String, RegisterTest constants from long to String
MagneticMojo
2023-10-16 14:06:19 +02:00
fcdb1b780cScanner getEAN() change interface method return value from long to String
MagneticMojo
2023-10-16 14:05:13 +02:00
296c4e3177Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
Homero
2023-10-16 14:03:54 +02:00
67e8a20fb8ShoppingCart&Test ny metod: completePurchase
Homero
2023-10-16 14:01:56 +02:00
617deb192cAdded boolean scanningComplete in Register and tests for it
nidorbRotkiv
2023-10-16 13:59:44 +02:00
57be249c7cFixed faulty tests and code from previous commit.
adsa4926
2023-10-16 13:58:02 +02:00
667c51c387Tests now added for EAN in Item class
adsa4926
2023-10-16 13:49:19 +02:00
1978d490f7Changed EAN to be a string. EAN class will not be used to represent anything anymore.
adsa4926
2023-10-16 13:25:07 +02:00
6d62f1d607Formated assortment and tests so it can handle new csv format. Changed from long to String format on EAN
adsa4926
2023-10-16 13:24:28 +02:00
472b50e6c1Fixade till csv filer och deras format.
adsa4926
2023-10-16 13:20:28 +02:00
0f594d803eMerge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
adsa4926
2023-10-16 12:12:27 +02:00
94a5d91012forgot to save the actual classes in prev commit
adsa4926
2023-10-16 11:57:51 +02:00
cec4bfb2d3added test/func for cancelPurchase(), tests/func for add/remove to null cart, method to get configured Register instance
MagneticMojo
2023-10-16 11:35:55 +02:00
14af07b96fProduction-assortment - refactor - Varorna har nu varugrupp och matchar mer Pressbyrån!
Homero
2023-10-16 11:39:44 +02:00
1c725e58a3Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
Homero
2023-10-16 11:16:57 +02:00
29c5aed87bSammanfogningskonflikt i ShoppingCartTest
Homero
2023-10-16 11:15:52 +02:00
86b252df16Added 2 enum classes, 1 for VAT 1 for Discounts
adsa4926
2023-10-16 11:07:38 +02:00
c1b6d343c4Minor refactor, add and remove returns a boolean
nidorbRotkiv
2023-10-16 10:56:44 +02:00
f95f594a42checked for equivalence partitions in present testmethods and add EP identifiers - partially done
MagneticMojo
2023-10-16 10:33:05 +02:00
759682a9f9ShoppingCart.java, add/remove returns boolean Refactored function/variable names. Refactored tests to still run with new var names
adsa4926
2023-10-16 10:24:38 +02:00
860feb2370Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
adsa4926
2023-10-16 09:27:27 +02:00
3c3012242eReceipt - klassen tar emot en samliing LineItems.
Homero
2023-10-15 21:37:29 +02:00
3d393eee2cNy klass: Receipt, har serienummer,datum o tid. Ska ta emot alla LineItems o skapa kvittot.
Homero
2023-10-15 15:09:55 +02:00
2e97b7935fShoppingCart - refactor:Förbättrade getTOtalPriceInKronor() som hade råkat klippa ören.
Homero
2023-10-15 11:29:35 +02:00
9535081bf2ShoppingCart.getTotalPriceInKronor() returnerar en sträng med två decimaler.
Homero
2023-10-14 19:58:10 +02:00
5e734f0a55ShoppingCart(refactor) räknar Items med numbOfItems(). EN räknare istället för två. Ändrade i alla klasser som använde size()
Homero
2023-10-14 18:58:48 +02:00
f460048d92Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
Homero
2023-10-14 15:56:49 +02:00
d33edcedd4fler valida och invalida tester som matchar ekvivalensklasserna samt korrigering i removeItem()
Homero
2023-10-14 15:54:28 +02:00
41573608cbRegister addToCart() and removeFromCart() implemented - NEED boolean return from ShoppingCart methods called
MagneticMojo
2023-10-13 16:03:41 +02:00
64c0e7eadeLa till en extra konstruktor i Item för att skapa EAN, formatterat teststrängar i shoppingcartest.
adsa4926
2023-10-13 15:35:46 +02:00
3b7a5c6a1dMerge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
adsa4926
2023-10-13 15:17:14 +02:00
e1843dfcc4temp solutions to test shoppingcart functions
adsa4926
2023-10-13 15:17:03 +02:00
422438bd9eAdded tests for additem and removeitem
adsa4926
2023-10-13 15:16:39 +02:00
4031363cc0Added addItem, removeItem and functionality required for those
adsa4926
2023-10-13 15:16:11 +02:00
892bbed3a5Mocking adapter for testing not implemented methods in ShoppingCart
nidorbRotkiv
2023-10-13 14:19:16 +02:00
13b34e3442JAG HADE INTE SPARAT INNAN JAG PUSHA JAG ÄR DUM
adsa4926
2023-10-13 13:48:08 +02:00
3ec8616a17Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
adsa4926
2023-10-13 13:42:07 +02:00
cdb6be9fb4formatted EAN class and fixed constructor for already created EAN
adsa4926
2023-10-13 13:42:01 +02:00
8cbb17a8a3Formated the test code
adsa4926
2023-10-13 13:40:59 +02:00
6afae1449dComments for future functionality in Register
MagneticMojo
2023-10-13 09:57:37 +02:00
c5123ebc06Refactored EAN class + added checkdigit function
adsa4926
2023-10-13 09:48:02 +02:00
52887126d7Fixed faulty tests. Fixed several faulty tests that used the wrong testvalues before. Added checkDigit to tests.
adsa4926
2023-10-13 09:46:37 +02:00
a4e5a569eeAdded EAN.java Made EAN class that passes all currently written tests in EANTest.java
adsa4926
2023-10-12 22:53:16 +02:00
a569ae0c33Added tests for EAN Class Test based of equivalence classes.
adsa4926
2023-10-12 22:46:42 +02:00
2300babb10LineItem changed from record to class, mutability of field quantity needed by ShoppingCart
MagneticMojo
2023-10-12 18:52:22 +02:00
d14553da6cadd cartCounter + getter in ShoppingCart
MagneticMojo
2023-10-12 16:29:33 +02:00
e058d0f7f3equalsSame() added to ItemTest
MagneticMojo
2023-10-12 16:28:33 +02:00