83103dbd4b
Mer små ändringar baserat på Granskningen.
Homero
2023-10-20 12:44:04 +02:00
613f7fd351
Små ändringar baserat på granskningen
Homero
2023-10-20 12:03:28 +02:00
80b2535334
ShoppingCart - tester för de getIsPaid() och setPaid()
Homero
2023-10-20 11:36:08 +02:00
d695631eac
EAN & 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
f973320c33
Item.java - Added function to retrieve how much of total price is VAT
adsa4926
2023-10-18 11:58:44 +02:00
64260ce956
Item.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
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
adsa4926
2023-10-18 08:16:46 +02:00
6989dae649
RegisterTest, 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
812b3c8b9b
Register, 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
c594a293a9
ReceiptRepository interface and concrete implementation ReceiptLedger added for use in Register.logReceipt()
MagneticMojo
2023-10-17 16:38:15 +02:00
6807d2d5df
Register, added method pay() sets the boolean isPaid in ShoppingCart to true.
nidorbRotkiv
2023-10-17 14:18:06 +02:00
2f4081c97a
ShoppingCart, 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
602ff4c845
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
Homero
2023-10-17 11:53:19 +02:00
a8dce3f198
ShoppingCartTest - testmetoder som räknar antal Items och antal LineItems i avslutad varukorg.
Homero
2023-10-17 11:52:52 +02:00
2ba3f8cff5
added setter for field scanningCompleted
MagneticMojo
2023-10-16 15:40:13 +02:00
aae4646572
ShoppingCart test&kod ny metod getTotalPriceInOre - returnerar Long.
Homero
2023-10-16 14:26:05 +02:00
382ea3f9e0
refactored Register addToCart() and removeFromCart() parameter from long to String, RegisterTest constants from long to String
MagneticMojo
2023-10-16 14:06:19 +02:00
fcdb1b780c
Scanner getEAN() change interface method return value from long to String
MagneticMojo
2023-10-16 14:05:13 +02:00
296c4e3177
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
Homero
2023-10-16 14:03:54 +02:00
67e8a20fb8
ShoppingCart&Test ny metod: completePurchase
Homero
2023-10-16 14:01:56 +02:00
617deb192c
Added boolean scanningComplete in Register and tests for it
nidorbRotkiv
2023-10-16 13:59:44 +02:00
57be249c7c
Fixed faulty tests and code from previous commit.
adsa4926
2023-10-16 13:58:02 +02:00
667c51c387
Tests now added for EAN in Item class
adsa4926
2023-10-16 13:49:19 +02:00
1978d490f7
Changed EAN to be a string. EAN class will not be used to represent anything anymore.
adsa4926
2023-10-16 13:25:07 +02:00
6d62f1d607
Formated 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
472b50e6c1
Fixade till csv filer och deras format.
adsa4926
2023-10-16 13:20:28 +02:00
0f594d803e
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
adsa4926
2023-10-16 12:12:27 +02:00
94a5d91012
forgot to save the actual classes in prev commit
adsa4926
2023-10-16 11:57:51 +02:00
cec4bfb2d3
added 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
14af07b96f
Production-assortment - refactor - Varorna har nu varugrupp och matchar mer Pressbyrån!
Homero
2023-10-16 11:39:44 +02:00
1c725e58a3
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
Homero
2023-10-16 11:16:57 +02:00
29c5aed87b
Sammanfogningskonflikt i ShoppingCartTest
Homero
2023-10-16 11:15:52 +02:00
86b252df16
Added 2 enum classes, 1 for VAT 1 for Discounts
adsa4926
2023-10-16 11:07:38 +02:00
c1b6d343c4
Minor refactor, add and remove returns a boolean
nidorbRotkiv
2023-10-16 10:56:44 +02:00
f95f594a42
checked for equivalence partitions in present testmethods and add EP identifiers - partially done
MagneticMojo
2023-10-16 10:33:05 +02:00
759682a9f9
ShoppingCart.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
860feb2370
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
adsa4926
2023-10-16 09:27:27 +02:00
f31e47d5b2
Small refactor
adsa4926
2023-10-16 09:23:29 +02:00
3c3012242e
Receipt - klassen tar emot en samliing LineItems.
Homero
2023-10-15 21:37:29 +02:00
3d393eee2c
Ny klass: Receipt, har serienummer,datum o tid. Ska ta emot alla LineItems o skapa kvittot.
Homero
2023-10-15 15:09:55 +02:00
2e97b7935f
ShoppingCart - refactor:Förbättrade getTOtalPriceInKronor() som hade råkat klippa ören.
Homero
2023-10-15 11:29:35 +02:00
9535081bf2
ShoppingCart.getTotalPriceInKronor() returnerar en sträng med två decimaler.
Homero
2023-10-14 19:58:10 +02:00
5e734f0a55
ShoppingCart(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
f460048d92
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
Homero
2023-10-14 15:56:49 +02:00
d33edcedd4
fler valida och invalida tester som matchar ekvivalensklasserna samt korrigering i removeItem()
Homero
2023-10-14 15:54:28 +02:00
41573608cb
Register addToCart() and removeFromCart() implemented - NEED boolean return from ShoppingCart methods called
MagneticMojo
2023-10-13 16:03:41 +02:00
64c0e7eade
La 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
3b7a5c6a1d
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
adsa4926
2023-10-13 15:17:14 +02:00
e1843dfcc4
temp solutions to test shoppingcart functions
adsa4926
2023-10-13 15:17:03 +02:00
422438bd9e
Added tests for additem and removeitem
adsa4926
2023-10-13 15:16:39 +02:00
4031363cc0
Added addItem, removeItem and functionality required for those
adsa4926
2023-10-13 15:16:11 +02:00
892bbed3a5
Mocking adapter for testing not implemented methods in ShoppingCart
nidorbRotkiv
2023-10-13 14:19:16 +02:00
13b34e3442
JAG HADE INTE SPARAT INNAN JAG PUSHA JAG ÄR DUM
adsa4926
2023-10-13 13:48:08 +02:00
3ec8616a17
Merge branch 'main' of gitea.dsv.su.se:adsa4926/GraphLib
adsa4926
2023-10-13 13:42:07 +02:00
cdb6be9fb4
formatted EAN class and fixed constructor for already created EAN
adsa4926
2023-10-13 13:42:01 +02:00
8cbb17a8a3
Formated the test code
adsa4926
2023-10-13 13:40:59 +02:00
6afae1449d
Comments for future functionality in Register
MagneticMojo
2023-10-13 09:57:37 +02:00
c5123ebc06
Refactored EAN class + added checkdigit function
adsa4926
2023-10-13 09:48:02 +02:00
52887126d7
Fixed 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
a4e5a569ee
Added EAN.java Made EAN class that passes all currently written tests in EANTest.java
adsa4926
2023-10-12 22:53:16 +02:00
a569ae0c33
Added tests for EAN Class Test based of equivalence classes.
adsa4926
2023-10-12 22:46:42 +02:00
2300babb10
LineItem changed from record to class, mutability of field quantity needed by ShoppingCart
MagneticMojo
2023-10-12 18:52:22 +02:00