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

Remove side affect of mock DateTimeProvider #247

Merged
merged 2 commits into from
Jul 5, 2020

Conversation

Romancha
Copy link
Contributor

@Romancha Romancha commented Jul 5, 2020

Using mock for dateTimeProvider may affect users test that use dateTimeProvider. To avoid side affect we need to use @MockBean

Link to issue

@CLAassistant
Copy link

CLAassistant commented Jul 5, 2020

CLA assistant check
All committers have signed the CLA.

@Romancha Romancha mentioned this pull request Jul 5, 2020
1 task
…meProvider. To avoid side affect we need to use @MockBean
@Romancha Romancha force-pushed the affect-mock-datetimeprovider branch from a8e2e99 to 9675849 Compare July 5, 2020 16:14
Copy link
Member

@sendilkumarn sendilkumarn left a comment

Choose a reason for hiding this comment

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

Congrats on your first contribution @Romancha 🎉

Can you also port this to the main generator? I think that is also using @Mock.

@Romancha
Copy link
Contributor Author

Romancha commented Jul 5, 2020

Congrats on your first contribution @Romancha 🎉

Can you also port this to the main generator? I think that is also using @Mock.

Thank!
I will add changes to the main project tomorrow.

@sendilkumarn sendilkumarn merged commit b3a4ac8 into jhipster:master Jul 5, 2020
@Romancha Romancha deleted the affect-mock-datetimeprovider branch July 6, 2020 14:04
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