2.9K Star 20.5K Fork 7.7K

GVPsmallchill/SpringBlade

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
blade-auth
blade-common
blade-gateway
blade-ops
blade-service-api
blade-service
blade-demo
blade-desk
src
main
test
java
org/springblade/desk/test/launcher
BladeDemoTest.java
resources
Dockerfile
pom.xml
blade-log
blade-system
pom.xml
doc
script
.editorconfig
.gitignore
LICENSE
README.md
pom.xml
克隆/下载
BladeDemoTest.java 850 Bytes
一键复制 编辑 原始数据 按行查看 历史
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springblade.core.test.BladeBootTest;
import org.springblade.core.test.BladeSpringExtension;
import org.springblade.desk.DeskApplication;
import org.springblade.desk.service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
/**
* Blade单元测试
*
* @author Chill
*/
@ExtendWith(BladeSpringExtension.class)
@SpringBootTest(classes = DeskApplication.class)
@BladeBootTest(appName = "blade-desk", profile = "test", enableLoader = true)
public class BladeDemoTest {
@Autowired
private INoticeService noticeService;
@Test
public void contextLoads() {
Long count = noticeService.count();
System.out.println("notice数量:[" + count + "] 个");
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/smallc/SpringBlade.git
git@gitee.com:smallc/SpringBlade.git
smallc
SpringBlade
SpringBlade
master

搜索帮助