29 lines
652 B
Java
29 lines
652 B
Java
package com.huangge1199.longimagesearchmcp.tools;
|
|
|
|
import jakarta.annotation.Resource;
|
|
import org.junit.jupiter.api.Assertions;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
/**
|
|
* ImageSearchToolTest
|
|
*
|
|
* @author huangge1199
|
|
* @since 2025/6/4 15:51:37
|
|
*/
|
|
@SpringBootTest
|
|
class ImageSearchToolTest {
|
|
|
|
@Resource
|
|
private ImageSearchTool imageSearchTool;
|
|
|
|
@Test
|
|
void searchImage() {
|
|
String result = imageSearchTool.searchImage("computer");
|
|
System.out.println(result);
|
|
Assertions.assertNotNull(result);
|
|
}
|
|
}
|