-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add new Coffee Shop Kata and Coffee Shop Kata solution module #139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope it's OK to comment on this as I wanted to try it out.
|
||
@Test | ||
public void testSealedClasses(){ | ||
assertFalse(CoffeeDrink.class.isSealed()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isSealed() isn't available in Java 8, only 17+.
|
||
@Test | ||
public void getDrinkItems() { | ||
List<String> expected = List.of("HOT Americano", "HOT CARAMEL Latte with ALMOND_MILK", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List.of is Java 9+, not available in Java 8.
import static bnymellon.codekatas.coffeekata.food.SpreadType.HERB_GARLIC_CREAM_CHEESE; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing import for assertFalse.
|
||
import bnymellon.codekatas.coffeekata.CoffeeShopOrder; | ||
import bnymellon.codekatas.coffeekata.Item; | ||
import bnymellon.codekatas.coffeekata.food.Bagel; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing import for bnymellon.codekatas.coffeekata.beverage.CoffeeDrink
ff56cc4
to
3801156
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @aqsa505, looks mostly good. I have some changes request inline. Thanks!
...java-features-solutions/src/main/java/bnymellon/codekatas/coffeekata/beverage/Americano.java
Outdated
Show resolved
Hide resolved
coffee-shop-kata-solutions/new-java-features-solutions/src/test/java/CoffeeShopTest.java
Outdated
Show resolved
Hide resolved
...ew-java-features/src/main/java/bnymellon/codekatas/coffeekata/beverage/DrinkTemperature.java
Outdated
Show resolved
Hide resolved
...ata/new-java-features/src/main/java/bnymellon/codekatas/coffeekata/beverage/FlavorSyrup.java
Outdated
Show resolved
Hide resolved
...hop-kata/old-java-features/src/main/java/bnymellon/codekatas/coffeekata/CoffeeShopOrder.java
Outdated
Show resolved
Hide resolved
coffee-shop-kata/old-java-features/src/main/java/bnymellon/codekatas/coffeekata/food/Bagel.java
Show resolved
Hide resolved
...ee-shop-kata/old-java-features/src/main/java/bnymellon/codekatas/coffeekata/food/Cookie.java
Show resolved
Hide resolved
coffee-shop-kata/old-java-features/src/main/java/bnymellon/codekatas/coffeekata/food/Donut.java
Show resolved
Hide resolved
0ab320e
to
4953e56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Aqsa Malik [email protected]