Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stian Rusvik #123

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
599f764
added setup code and made first test fail.
Aug 16, 2024
f3518f6
made first test pass.
Aug 16, 2024
6845820
updated test.
Aug 19, 2024
f16cae3
made remove products fail.
Aug 19, 2024
ffb6dd4
made remove products pass.
Aug 19, 2024
6c51982
updated remove product method.
Aug 19, 2024
168153a
made is full test fail.
Aug 19, 2024
db0ee7a
made is full test pass.
Aug 19, 2024
2f6db26
updated custom exception to inherit from the Exception class.
Aug 19, 2024
fd0258e
made change capacity test fail.
Aug 19, 2024
b28f272
made change capacity test pass.
Aug 19, 2024
79e2e65
made remove product when product does not exists fail.
Aug 19, 2024
ed32430
made remove product when product does not exists pass.
Aug 19, 2024
cb1e84b
.
Aug 19, 2024
567f832
wrote test for get total cost in basket.
Aug 20, 2024
f51fa72
created a product factory.
Aug 20, 2024
d641dbb
lots of refactoring to make the tests adapt to the new factory.
Aug 20, 2024
5997685
more refactoring of existing code.
Aug 20, 2024
8f1e681
added builder pattern to Bagel for fillings.
Aug 20, 2024
0ac043a
made testCreateBagelWithFillings fail.
Aug 20, 2024
32f6565
made testCreateBagelWithFillings pass.
Aug 20, 2024
c710111
made testPriceOfFilling fail.
Aug 20, 2024
5aa099d
made testPriceOfFilling pass.
Aug 20, 2024
093e33d
finished core exercises.
Aug 20, 2024
c9fceb1
lots of work
Aug 21, 2024
8a85f6a
lots of bug hunting!
Aug 22, 2024
aac70b0
wrote test on first discount - Extension 1
Aug 22, 2024
86f63df
wrote test on second discount - Extension 1
Aug 22, 2024
f2da9bc
wrote test on third discount - Extension 1
Aug 22, 2024
0ca633f
wrote some more tests for Extension 1
Aug 22, 2024
7efa7a4
trying to solve difficult bug.
Aug 22, 2024
022e75a
removed code that broke the tests.
Aug 22, 2024
e84a093
refactoring.
Aug 22, 2024
4a2fa4e
updated domain model.
Aug 22, 2024
e97f94d
Started implementing receipt for extension 2
Aug 22, 2024
76583cd
.
Aug 23, 2024
7e886ac
Finished extension 2 - Bobs bagel
Aug 23, 2024
93d24a0
Updated domain model and added class diagram.
Aug 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
made testPriceOfFilling pass.
Stian Rusvik committed Aug 20, 2024
commit 5aa099d02389dda87fa872fac151e637b0879761
2 changes: 1 addition & 1 deletion src/main/java/com/booleanuk/core/inherited/Bagel.java
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ public Bagel createBagelWithFilling(BagelType variant, FillingType... fillings)
}

public Double getFillingPrice(FillingType variant) {
return 0.0;
return this.fillingsPrices.get(variant);
}

public static class BagelBuilder {