chapter03 icon indicating copy to clipboard operation
chapter03 copied to clipboard

book and code are different

Open brownviper opened this issue 4 years ago • 2 comments

https://github.com/Book-Microservices-v2/chapter03/blob/ecf489e28d65bd4e0d28ff9c80c1f9e09b87be3b/multiplication/src/main/java/microservices/book/multiplication/challenge/ChallengeAttempt.java#L15

chapter 3 in the book mention Long userId and code here is using User user

brownviper avatar Dec 24 '20 17:12 brownviper

Good catch! It's an error in Listing 3.8 in the book. I checked the future references to that class and they're sync'ed with the book, so it only happens here.

Thanks a lot for reporting it! I'll document this in the README as an errata and will mention you there.

mechero avatar Dec 25 '20 08:12 mechero

Yes! Actually going through the book i realised the same. When writing the test case to verify ChallengeAttempts we need to create a object of ChallengeAttempt class and while declaring ChallengeAttempt the userId variable is of Long data type which should be changed to User class data type.

SIdjagtap83 avatar May 13 '21 05:05 SIdjagtap83