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

book and code are different #3

Open
brownviper opened this issue Dec 24, 2020 · 2 comments
Open

book and code are different #3

brownviper opened this issue Dec 24, 2020 · 2 comments
Labels

Comments

@brownviper
Copy link

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

@mechero
Copy link
Contributor

mechero commented Dec 25, 2020

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 mechero added the errata label Dec 25, 2020
@SIdjagtap83
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants