Skip to content

Commit

Permalink
Using mock for dateTimeProvider may affect users test that use dateTi…
Browse files Browse the repository at this point in the history
…meProvider. To avoid side affect we need to use @MockBean
  • Loading branch information
Romancha authored and Roman.Makarskiy committed Jul 5, 2020
1 parent fdd8ca9 commit 9675849
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class UserServiceIT <% if (databaseType === 'cassandra') { %>: AbstractCassandra
@Autowired
private lateinit var auditingHandler: AuditingHandler

@Mock
@MockBean
private lateinit var dateTimeProvider: DateTimeProvider
<%_ } _%>
<%_ if (databaseType !== 'no') { _%>
Expand Down

0 comments on commit 9675849

Please sign in to comment.