Java 在STS中单独运行jhipster测试用例
我使用jhipster和SpringStudio中的open工具创建了一个spring引导应用程序 要在我单击任何测试文件并作为Junit运行时运行Junit案例,它会显示Java 在STS中单独运行jhipster测试用例,java,spring-boot,junit,jhipster,Java,Spring Boot,Junit,Jhipster,我使用jhipster和SpringStudio中的open工具创建了一个spring引导应用程序 要在我单击任何测试文件并作为Junit运行时运行Junit案例,它会显示DEBUG:[onnection adder]org.postgresql.ssl.MakeSSL:在Junit的控制台窗口中将常规套接字连接转换为ssl,显示运行0/0,错误0,失败0 如何在Jhipster中运行每个测试用例。我编写的测试用例如下所示 @Test public void saveAp
DEBUG:[onnection adder]org.postgresql.ssl.MakeSSL:在Junit的控制台窗口中将常规套接字连接转换为ssl
,显示运行0/0,错误0,失败0
如何在Jhipster中运行每个测试用例。我编写的测试用例如下所示
@Test
public void saveApplication() throws Exception {
restMockMvc.perform(post("/api/application")
.contentType(MediaType.APPLICATION_JSON)
.content(asJsonString(App)))
.andExpect(status().isOk());
}
junit只显示运行1/21,当出现liquibase锁错误时失败1。我很难理解您的问题,您说您在postgresql上遇到了liquibase锁错误,您是否使用testcontainers运行postgresql?与STS有什么关系?从maven命令行运行时,它能工作吗?您得到的liquibase锁错误是什么?后满堆栈跟踪