adsa4926
|
5c92149917
|
-
|
2023-10-23 21:03:30 +02:00 |
|
Homero
|
83103dbd4b
|
Mer små ändringar baserat på Granskningen.
|
2023-10-20 12:44:04 +02:00 |
|
Homero
|
613f7fd351
|
Små ändringar baserat på granskningen
|
2023-10-20 12:03:28 +02:00 |
|
Homero
|
80b2535334
|
ShoppingCart - tester för de getIsPaid() och setPaid()
|
2023-10-20 11:36:08 +02:00 |
|
adsa4926
|
d695631eac
|
EAN & category is now represented by their own classes
Fixed tests and classes that are affected by these changes
|
2023-10-19 15:09:53 +02:00 |
|
adsa4926
|
3c8448f183
|
Category.java - Enum som representerar kategori
|
2023-10-19 15:05:32 +02:00 |
|
adsa4926
|
f973320c33
|
Item.java - Added function to retrieve how much of
total price is VAT
|
2023-10-18 11:58:44 +02:00 |
|
adsa4926
|
64260ce956
|
Item.java - Added category to constructor.
Added category to all tests that create items so they run
|
2023-10-18 09:36:31 +02:00 |
|
adsa4926
|
3b147c8820
|
Item.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
|
2023-10-18 08:16:46 +02:00 |
|
MagneticMojo
|
6989dae649
|
RegisterTest, added test for Register pay(), createReceipt() and logReceipt, updated tests to handle ctr injection of ReceiptLedger
|
2023-10-17 16:45:48 +02:00 |
|
MagneticMojo
|
812b3c8b9b
|
Register, added field ReceiptLedger to store receipt instances (dependecy injected in ctr), and methods pay(), createReceipt() and logReceipt()
|
2023-10-17 16:43:22 +02:00 |
|
MagneticMojo
|
c594a293a9
|
ReceiptRepository interface and concrete implementation ReceiptLedger added for use in Register.logReceipt()
|
2023-10-17 16:38:15 +02:00 |
|
nidorbRotkiv
|
6807d2d5df
|
Register, added method pay() sets the boolean isPaid in ShoppingCart to true.
|
2023-10-17 14:18:06 +02:00 |
|
nidorbRotkiv
|
2f4081c97a
|
ShoppingCart, added boolean isPaid. Changed name from completePurchase to getLineItemsForPaidPurchase. getLineItemsForPaidPurchase also has a check for isPaid now.
|
2023-10-17 14:14:01 +02:00 |
|
Homero
|
602ff4c845
|
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
|
2023-10-17 11:53:19 +02:00 |
|
Homero
|
a8dce3f198
|
ShoppingCartTest - testmetoder som räknar antal Items och antal LineItems i avslutad varukorg.
|
2023-10-17 11:52:52 +02:00 |
|
MagneticMojo
|
2ba3f8cff5
|
added setter for field scanningCompleted
|
2023-10-16 15:40:18 +02:00 |
|
Homero
|
aae4646572
|
ShoppingCart test&kod ny metod getTotalPriceInOre - returnerar Long.
|
2023-10-16 14:26:05 +02:00 |
|
Homero
|
20a1455022
|
ShoppingCart - Refactor completePurchase - metoden returnerar ArrayList<LineItem> istället.
|
2023-10-16 14:17:39 +02:00 |
|
MagneticMojo
|
382ea3f9e0
|
refactored Register addToCart() and removeFromCart() parameter from long to String, RegisterTest constants from long to String
|
2023-10-16 14:06:50 +02:00 |
|
MagneticMojo
|
fcdb1b780c
|
Scanner getEAN() change interface method return value from long to String
|
2023-10-16 14:06:50 +02:00 |
|
Homero
|
296c4e3177
|
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
|
2023-10-16 14:03:54 +02:00 |
|
Homero
|
67e8a20fb8
|
ShoppingCart&Test ny metod: completePurchase
|
2023-10-16 14:01:56 +02:00 |
|
nidorbRotkiv
|
617deb192c
|
Added boolean scanningComplete in Register and tests for it
|
2023-10-16 13:59:51 +02:00 |
|
adsa4926
|
57be249c7c
|
Fixed faulty tests and code from previous commit.
|
2023-10-16 13:58:02 +02:00 |
|
adsa4926
|
667c51c387
|
Tests now added for EAN in Item class
|
2023-10-16 13:49:19 +02:00 |
|
adsa4926
|
1978d490f7
|
Changed EAN to be a string. EAN class will not be used to represent anything anymore.
|
2023-10-16 13:25:07 +02:00 |
|
adsa4926
|
6d62f1d607
|
Formated assortment and tests so it can handle new csv format. Changed from long to String format on EAN
|
2023-10-16 13:24:28 +02:00 |
|
adsa4926
|
472b50e6c1
|
Fixade till csv filer och deras format.
|
2023-10-16 13:20:28 +02:00 |
|
adsa4926
|
0f594d803e
|
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
|
2023-10-16 12:12:27 +02:00 |
|
adsa4926
|
94a5d91012
|
forgot to save the actual classes in prev commit
|
2023-10-16 11:57:51 +02:00 |
|
nidorbRotkiv
|
bc957b2cbf
|
Added
|
2023-10-16 11:54:22 +02:00 |
|
MagneticMojo
|
cec4bfb2d3
|
added test/func for cancelPurchase(), tests/func for add/remove to null cart, method to get configured Register instance
|
2023-10-16 11:40:22 +02:00 |
|
Homero
|
14af07b96f
|
Production-assortment - refactor - Varorna har nu varugrupp och matchar mer Pressbyrån!
|
2023-10-16 11:39:44 +02:00 |
|
Homero
|
1c725e58a3
|
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
|
2023-10-16 11:16:57 +02:00 |
|
Homero
|
29c5aed87b
|
Sammanfogningskonflikt i ShoppingCartTest
|
2023-10-16 11:15:52 +02:00 |
|
adsa4926
|
86b252df16
|
Added 2 enum classes, 1 for VAT 1 for Discounts
|
2023-10-16 11:07:38 +02:00 |
|
nidorbRotkiv
|
c1b6d343c4
|
Minor refactor, add and remove returns a boolean
|
2023-10-16 10:56:44 +02:00 |
|
Homero
|
13ec1bf314
|
Refactor ShoppingCartTest - checkLocalDateTimeOnShoppingCart
|
2023-10-16 10:54:31 +02:00 |
|
MagneticMojo
|
f95f594a42
|
checked for equivalence partitions in present testmethods and add EP identifiers - partially done
|
2023-10-16 10:33:44 +02:00 |
|
adsa4926
|
759682a9f9
|
ShoppingCart.java, add/remove returns boolean
Refactored function/variable names.
Refactored tests to still run with new var names
|
2023-10-16 10:24:38 +02:00 |
|
adsa4926
|
860feb2370
|
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
|
2023-10-16 09:27:27 +02:00 |
|
adsa4926
|
f31e47d5b2
|
Small refactor
|
2023-10-16 09:23:29 +02:00 |
|
Homero
|
3c3012242e
|
Receipt - klassen tar emot en samliing LineItems.
|
2023-10-15 21:37:29 +02:00 |
|
Homero
|
3d393eee2c
|
Ny klass: Receipt, har serienummer,datum o tid. Ska ta emot alla LineItems o skapa kvittot.
|
2023-10-15 15:09:55 +02:00 |
|
Homero
|
2e97b7935f
|
ShoppingCart - refactor:Förbättrade getTOtalPriceInKronor() som hade råkat klippa ören.
|
2023-10-15 11:29:35 +02:00 |
|
Homero
|
9535081bf2
|
ShoppingCart.getTotalPriceInKronor() returnerar en sträng med två decimaler.
|
2023-10-14 19:58:10 +02:00 |
|
Homero
|
5e734f0a55
|
ShoppingCart(refactor) räknar Items med numbOfItems(). EN räknare istället för två. Ändrade i alla klasser som använde size()
|
2023-10-14 18:58:48 +02:00 |
|
Homero
|
f460048d92
|
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
|
2023-10-14 15:56:49 +02:00 |
|
Homero
|
d33edcedd4
|
fler valida och invalida tester som matchar ekvivalensklasserna samt korrigering i removeItem()
|
2023-10-14 15:54:28 +02:00 |
|