pandaapo commented on code in PR #4582: URL: https://github.com/apache/eventmesh/pull/4582#discussion_r1405938848
########## eventmesh-connectors/eventmesh-connector-spring/src/test/java/org/apache/eventmesh/connector/spring/source/connector/SpringSourceConnectorTest.java: ########## @@ -25,17 +27,29 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mockito; import org.mockito.Spy; import org.mockito.junit.jupiter.MockitoExtension; +import org.mockito.junit.jupiter.MockitoSettings; +import org.mockito.quality.Strictness; +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.core.env.ConfigurableEnvironment; +import org.springframework.core.env.MutablePropertySources; @ExtendWith(MockitoExtension.class) +@MockitoSettings(strictness = Strictness.LENIENT) Review Comment: It seems unnecessary to add @MockitoSettings because you are configuring LENIENT, which is the default mode for Mockito at runtime, requiring the loosest expectations for code. 好像没有必要添加@MockitoSettings,因为您配置的是LENIENT,这就是Mockito运行时默认的模式,即代码要求最宽松。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
