tdd-java-demo

tdd java demo with micro-commits

git clone https://9o.is/git/tdd-java-demo.git

DateCommit messageAuthorFiles+-
2021-03-31 18:58remove unused importsJul1+0-2
2021-03-31 18:32move models to model packageJul18+364-355
2021-03-31 18:24move views to view packageJul8+93-81
2021-03-31 18:21rename constant variable BREAD_DISCOUNTJul1+5-5
2021-03-31 18:18extract method createBasket in BasketTestJul1+7-9
2021-03-31 18:15remove unused importsJul1+0-6
2021-03-31 18:10move code to TotalViewJul2+10-4
2021-03-31 18:08introduce TotalViewJul2+11-0
2021-03-31 18:07move code to PurchaseDayViewJul2+18-6
2021-03-31 18:04introduce PurchaseDayViewJul2+12-0
2021-03-31 18:02move item amount methods to CreateBasketViewJul2+28-17
2021-03-31 17:59introduce CreateBasketViewJul2+11-0
2021-03-31 17:53move constant variable discounts to Discounts classJul2+19-12
2021-03-31 17:48move constant variable items to Items classJul2+10-5
2021-03-31 17:45include expected totals to testJul1+9-0
2021-03-31 17:40reformat output method signature in RunnerTestJul1+3-2
2021-03-31 17:31prompt total with valid discounts onlyJul2+14-6
2021-03-31 17:07prompt for purchase dayJul2+5-0
2021-03-31 17:04invalidate discounts in BasketJul2+26-1
2021-03-31 16:48invalidate discount after end dateJul2+7-1
2021-03-31 16:46validate discount between datesJul2+8-1
2021-03-31 16:45validate discount on end dateJul2+9-1
2021-03-31 16:39validate discount on start dateJul2+12-4
2021-03-31 16:36remove unnecessary Discount constructorJul1+0-6
2021-03-31 16:31invalidate discount before start dateJul2+24-0
2021-03-31 15:21rename amounts to items in BasketJul3+8-9
2021-03-31 15:20use Multiset in BasketJul1+5-6
2021-03-31 15:19use Multiset in Basket methodsJul1+4-3
2021-03-31 15:16return Multiset in Basket.getAmountJul3+22-12
2021-03-31 15:12inline method getAmount in BasketJul1+3-3
2021-03-31 15:08inline methods in DiscountTestJul1+3-11
2021-03-31 15:07remove dead code Discount constructor using MapJul1+0-5
2021-03-31 15:06construct Discount with spread operatorJul4+9-13
2021-03-31 14:02set hashmap to multiset in DiscountJul1+7-9
2021-03-31 13:59use multiset data structure to apply discounts to basketJul2+22-9
2021-03-31 12:55remove method Discount.getItem()Jul2+0-18
2021-03-31 12:29strengthen Runner testsJul1+0-11
2021-03-31 12:28verify Basket.getTotal(Discount[])Jul1+9-0
2021-03-31 12:18move instance method getTotal to BasketJul2+9-10
2021-03-31 12:16extract method getTotalJul1+9-4
2021-03-31 12:13extract method soupBreadRequirementJul1+8-5
2021-03-31 12:10introduce constants for items in RunnerJul1+9-9
2021-03-31 12:08apply multiple types of discounts to basketJul2+23-1
2021-03-31 12:07do not apply discount without enough basket itemsJul2+12-2
2021-03-31 11:46apply multiple discounts when multiple items are metJul2+16-1
2021-03-31 11:30apply discount when multiple items are metJul1+6-0
2021-03-31 11:27do not apply discount when multiple items are not metJul2+29-0
2021-03-31 11:21change Discount internal data structure for itemsJul1+17-4
2021-03-31 11:08rename variables and methods in DiscountTestJul1+14-10
2021-03-31 10:44apply penny discount per appleJul3+9-8
2021-03-31 10:40strengthen Runner testsJul1+0-11
2021-03-31 10:36rename variables in DiscountJul1+3-4
2021-03-31 10:34verify Discount functionalityJul1+44-0
2021-03-31 10:23move instance method getDiscount to DiscountJul2+11-11
2021-03-31 10:20verify Basket.getAmount(Item)Jul1+11-5
2021-03-31 10:18move instance method getAmount to BasketJul2+5-5
2021-03-31 10:15extract method getAmountJul1+6-1
2021-03-31 10:10rename variables in getDiscountJul1+5-5
2021-03-31 10:09inline variables item and amountJul1+1-3
2021-03-31 10:08introduce parameter object DiscountJul2+25-6
2021-03-31 10:04inline variable discountJul1+1-2
2021-03-31 10:02rename variablesJul1+7-7
2021-03-31 09:53extract method getDiscountJul1+9-4
2021-03-31 09:51introduce variable appleDiscountJul1+4-1
2021-03-31 09:50introduce variable discountJul1+3-1
2021-03-31 09:47deducts a penny if there is an apple in the basketJul2+19-4
2021-03-31 09:17introduce variable basketJul1+2-2
2021-03-31 09:10add milk and apple itemsJul2+7-3
2021-03-31 09:06enhance output spacing and newlineJul2+6-4
2021-03-31 09:04extract method getItemAmountsJul1+9-5
2021-03-31 09:03verify Basket functionalityJul1+38-0
2021-03-31 08:54move instance method getTotal to BasketJul2+10-10
2021-03-31 08:52introduce parameter object BasketJul2+19-4
2021-03-31 08:51extract method getTotal (that calculates total)Jul1+8-3
2021-03-31 08:49remove dead code getTotal methodJul1+0-5
2021-03-31 08:49use a hashmap to track amounts before calculating totalJul1+10-2
2021-03-31 08:47extract method getItemAmountJul1+6-2
2021-03-31 08:35outputs total of $1.45 for one soup and breadJul2+3-3
2021-03-31 08:30outputs for how much breadJul2+12-2
2021-03-31 08:20strengthen Runner testsJul1+2-14
2021-03-31 08:18verify Item functionalityJul1+27-0
2021-03-31 07:54move instance method getTotal to ItemJul2+5-4
2021-03-31 07:53change method signature for getTotalJul1+3-3
2021-03-31 07:50inline variables name and costJul1+1-3
2021-03-31 07:49introduce parameter object ItemJul2+23-4
2021-03-31 07:48extract method (second) getTotalJul1+7-3
2021-03-31 07:45extract method getTotalJul1+5-1
2021-03-31 07:45introduce variable amount for inputJul1+2-1
2021-03-31 07:44introduce variable cost for itemJul1+2-1
2021-03-31 07:44introduce variable name for itemJul1+2-1
2021-03-31 07:40outputs total of $0.65 for one soupJul2+22-3
2021-03-31 07:30outputs for how much soupJul2+5-1
2021-03-31 07:25outputs total of $0.00Jul3+35-3
2021-03-31 07:19use Hamcrest test dependencyJul1+1-0
2021-03-31 07:15introduce RunnerJul2+14-1
2021-03-31 07:13introduce MainJul1+7-0
2021-03-31 07:12initialize projectJul7+304-0