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

Add new Coffee Shop Kata and Coffee Shop Kata solution module #139

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

aqsa505
Copy link
Contributor

@aqsa505 aqsa505 commented Aug 30, 2023

Signed-off-by: Aqsa Malik [email protected]

Copy link

@tedyoung tedyoung left a 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());

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",

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;

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;

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

@aqsa505 aqsa505 force-pushed the master branch 7 times, most recently from ff56cc4 to 3801156 Compare September 3, 2023 18:16
Copy link
Contributor

@donraab donraab left a 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!

@aqsa505 aqsa505 force-pushed the master branch 8 times, most recently from 0ab320e to 4953e56 Compare September 6, 2023 18:37
Copy link
Contributor

@donraab donraab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@donraab donraab merged commit 720e906 into BNYMellon:master Sep 6, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants