test(kb-open): use static import for assertThat in KbOpenApiControllerTest

Replace the single inline org.assertj.core.api.Assertions.assertThat call
with the static import already used for assertThatThrownBy, per code style
(test sources sync to the open-source repo).
This commit is contained in:
matevip 2026-06-30 09:40:47 +08:00
parent 9d292a9893
commit fb811b9dc1

View File

@ -15,6 +15,7 @@ import vip.mate.wiki.service.HybridRetriever;
import vip.mate.wiki.service.WikiKnowledgeBaseService;
import vip.mate.wiki.service.WikiPageService;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@ -76,7 +77,7 @@ class KbOpenApiControllerTest {
var result = controller.getPage(1L, "test", "summary", null);
org.assertj.core.api.Assertions.assertThat(result.getData()).isNotNull();
assertThat(result.getData()).isNotNull();
}
@Test