mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
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:
parent
9d292a9893
commit
fb811b9dc1
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user