-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sprint 03 #29
Sprint 03 #29
Conversation
Douglas019BR
commented
Feb 8, 2025
- improve bestseller methods on bookmarket
- create public methods on bookstore to enable tests
- improve and divide tests from bestsellers
- fix populateBook method to return rand parameter
- refact: UpdateRelatedBooks
- feat: Adição de enum para tipificar o cliente
- feat: Alteração no Customer para poder ser criado com tipificação
- refact: Alteração nos metodos equals e hashCOde de Customer
- feat: Alteração no bookstore e no bookmarket para criar clientes de tipos diferentes
- fix: correção de teste unitario
- fix: javadocs no setRelatedBooks
- fix: Javadoc no getTopFiveRelatedBooks
- fiz: nome de variável
- fiz: nome de variável
- Update src/main/java/servico/bookstore/Bookstore.java
- fix: javadocs
- fiz: nome de variavel
- fiz nome de variavel
- Update src/main/java/servico/bookstore/Bookstore.java
- Update src/main/java/servico/bookstore/Bookstore.java
- Update src/main/java/servico/bookstore/Bookstore.java
- Update src/main/java/servico/bookstore/Bookstore.java
- Update src/main/java/servico/bookstore/Bookstore.java
- Update src/main/java/servico/bookstore/Bookstore.java
- feat: finalização do item
- feat: Inserção de atributos no Cart
- feat: Adição de escopo de amarração em Bookstore
- hot-fix fix the comment sintaxeon bookstore
- fix reotrno dos metodos de carrinho
- feat: Implementaçoes de carrinho no bookmarket
- fix: correções gerais
- add unit test to bestseller method on bookstore
- Update src/main/java/servico/bookmarket/Bookmarket.java
- Correções do comentario [U8BBxGu3] Feat - Criar amarração entre Customer, Cart e Bookstore #25 (comment)
- Correções do comentario [U8BBxGu3] Feat - Criar amarração entre Customer, Cart e Bookstore #25 (comment)
- Correções do comentario [U8BBxGu3] Feat - Criar amarração entre Customer, Cart e Bookstore #25 (comment)
- docs: Javacoc no metodo createEmptyCart
- [Tqv7puSp] feat - criar metodo GetMinimumBookPrice
- [Tqtr1gN8] feat - criar metodo GetBookPriceAverage
- fix: Stock deve conter livros
- changing function name and fix documentation from getAvarageBookCost
- fix java version on pom.xml
- fix test shouldGetTheAverageCostFromABook
- change toList() to collect(Collectors.toList());
- fix javadoc
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
Co-authored-by: Douglas Sermarini <[email protected]>
.sorted((e1, e2) -> e2.getValue().compareTo(e1.getValue())) // Ordena por vendas (descendente) | ||
.limit(top) // Filtra os N primeiros | ||
.limit(limit) // Filtra os N primeiros |
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.
Nada critico que vou comentar, mas aqui nao teria que mudar o comentário? Anteriormente filtrava os primeiros, agora mudou o que filtra parece
@Override | ||
public Object executeOnBookstore(Stream<Bookstore> bookstore) { | ||
List<Stock> stocks = bookstore.map(bk -> bk.getStock(this.bookId)) | ||
.filter(stock -> stock != null && stock.getQty() > 0) |
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.
Aqui é meu monitor que ficou zuado ou a identaçao ta assim mesmo? O .filter ta la no canto da tela
public Object executeOnBookstore(Stream<Bookstore> bookstore) { | ||
return getBookstoreById(bookstore).getCart(cartId); | ||
} | ||
|
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.
Ficou um \n aqui
@@ -35,7 +35,11 @@ public RefreshCustomerSessionAction(int id, long now) { | |||
*/ | |||
@Override | |||
public Object executeOnBookstore(Stream<Bookstore> bookstore) { | |||
Bookstore.refreshCustomerSession(cId, now); | |||
try { | |||
Bookstore.refreshCustomerSession(cId, now); |
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.
Aqui acho que não é meu monitor porque é bem sucinto o bloco, mas apareceu zuado a identação pra mim
public void testGetCart() { | ||
Cart cart = instance.getCart(1).get(); | ||
|
||
assertFalse(cart == null); | ||
|
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.
\n (não sei se é costume geral de programador, mas la no trabalho o pessoal comenta "\n" onde o cara esqueceu uma linha pulada)
Date birthdate = null; | ||
String data = ""; | ||
long now = 0L; | ||
String fname = "João"; |
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.
Isso não poderia estar no setup do teste? Porque meio que utiliza os mesmo dados lá embaixo