Commit Graph

  • 5c92149917 - main adsa4926 2023-10-23 21:03:30 +02:00
  • 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
  • 3c8448f183 Category.java - Enum som representerar kategori adsa4926 2023-10-19 15:05:32 +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
  • 20a1455022 ShoppingCart - Refactor completePurchase - metoden returnerar ArrayList<LineItem> istället. Homero 2023-10-16 14:17:39 +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
  • bc957b2cbf Added nidorbRotkiv 2023-10-16 11:54:22 +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
  • 13ec1bf314 Refactor ShoppingCartTest - checkLocalDateTimeOnShoppingCart Homero 2023-10-16 10:54:31 +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
  • f6f0ef1677 Adapter deleted, restore Register implementation nidorbRotkiv 2023-10-13 14:46:26 +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
  • d14553da6c add cartCounter + getter in ShoppingCart MagneticMojo 2023-10-12 16:29:33 +02:00
  • e058d0f7f3 equalsSame() added to ItemTest MagneticMojo 2023-10-12 16:28:33 +02:00
  • 018fe19b3e Register addToCart() impl with Optional, RegisterTest mock Scanner MagneticMojo 2023-10-12 15:57:49 +02:00
  • f134484a70 CSV data column header updated to Scanner (was EAN) MagneticMojo 2023-10-12 15:56:07 +02:00
  • 6c4d8a96c5 Assortment remove serr prints, make getItem() return Optional MagneticMojo 2023-10-12 15:54:32 +02:00
  • 38a5de5460 renamed interface EAN to Scanner, removed ItemScanner and ItemScannerTest MagneticMojo 2023-10-12 15:40:01 +02:00
  • 33b131d680 add LineItem and LineItemTest MagneticMojo 2023-10-12 12:16:34 +02:00
  • 06cc2e1f07 Minor refactor nidorbRotkiv 2023-10-11 21:08:51 +02:00
  • fbe806ccca Added tests for equals and hashCode in Item and ItemTest nidorbRotkiv 2023-10-11 20:07:02 +02:00
  • 9f8d485f95 Implemented testEquals in ItemTest nidorbRotkiv 2023-10-11 19:22:36 +02:00
  • 818fd0e476 Register and RegisterTest small updates MagneticMojo 2023-10-11 19:19:50 +02:00
  • 772151920b add ShoppingCart methods size() and addItem(), tests implemented in ShoppingCartTest MagneticMojo 2023-10-11 18:11:11 +02:00
  • 16832f9d87 ShoppingCart member fields made private final (ctr assignment) MagneticMojo 2023-10-11 17:54:57 +02:00
  • 8718399799 Mockito maven dependency added for mocking purposes MagneticMojo 2023-10-11 17:33:22 +02:00
  • 407401a196 interface EAN created for mocking purposes MagneticMojo 2023-10-11 17:30:17 +02:00
  • 0f5ba69718 add additional CSV testing files for AssortmentTest MagneticMojo 2023-10-11 17:21:18 +02:00
  • 1c0315f5a9 add updated Assortment and AssortmentTest MagneticMojo 2023-10-11 17:20:16 +02:00
  • 46228940ec add main/resources/ and test/resources, add Assortment cvs files for production and test MagneticMojo 2023-10-11 17:18:53 +02:00
  • 2989eaeaad add Register, Assortment (and test classes), resources dir with items.csv MagneticMojo 2023-10-11 15:44:23 +02:00
  • 48a0559ae2 Added state for ItemScanner, so it can be turned on and off nidorbRotkiv 2023-10-11 13:56:58 +02:00
  • 7a6e809124 First version of ItemScanner and tests nidorbRotkiv 2023-10-11 13:29:28 +02:00
  • d41e5f8cef Added equals and hashCode to Item nidorbRotkiv 2023-10-11 12:24:43 +02:00
  • 30191f69cd En påbörjad ShoppingCart med sitt testprogram. Homero 2023-10-11 11:55:44 +02:00
  • 55143a1aaa Added a letter to NON_ISO_88591_NAME to see if it can handle one ISO nidorbRotkiv 2023-10-10 21:13:32 +02:00
  • 8b1323fdb0 Item all present functionality tested MagneticMojo 2023-10-10 14:58:12 +02:00
  • d18c171cd0 Equivalence partitions eval started for Item class MagneticMojo 2023-10-10 13:00:35 +02:00
  • 57a2e8333a Item class first test MagneticMojo 2023-10-10 11:33:31 +02:00
  • 4f69ce28e4 Money class last version MagneticMojo 2023-10-10 11:28:01 +02:00
  • eaf8196667 Money temp done MagneticMojo 2023-10-10 10:54:24 +02:00
  • 36c47e074a added Money class and getValue() with TDD MagneticMojo 2023-10-10 10:24:44 +02:00
  • 9decabb361 removed Dummy class MagneticMojo 2023-10-10 09:15:06 +02:00
  • 51f1e119f6 updated TeamNotes.md and pom.xml MagneticMojo 2023-10-10 09:04:14 +02:00