You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "DoChaoing (via GitHub)" <gi...@apache.org> on 2026/03/02 03:10:28 UTC

Re: [PR] test: improve seata-spring-boot-starter test coverage to 96% (#6505) [incubator-seata]

DoChaoing commented on code in PR #7995:
URL: https://github.com/apache/incubator-seata/pull/7995#discussion_r2870309202


##########
seata-spring-boot-starter/src/test/java/org/apache/seata/spring/boot/autoconfigure/SeataAutoConfigurationTest.java:
##########
@@ -27,13 +28,16 @@
 import org.mockito.MockedStatic;
 import org.mockito.Mockito;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.AutoConfigurations;
 import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
 import org.springframework.boot.context.properties.EnableConfigurationProperties;
 import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 import org.springframework.context.ApplicationContext;
 import org.springframework.context.annotation.Configuration;
 
 import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
+import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;

Review Comment:
   
     1. Unified assertThat import (line 41) — replaced the two conflicting static
     imports (AssertionsForClassTypes and AssertionsForInterfaceTypes) with the single
      recommended entry point:
     import static org.assertj.core.api.Assertions.assertThat;



-- 
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: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org