Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在STS中单独运行jhipster测试用例_Java_Spring Boot_Junit_Jhipster - Fatal编程技术网

Java 在STS中单独运行jhipster测试用例

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

我使用jhipster和SpringStudio中的open工具创建了一个spring引导应用程序

要在我单击任何测试文件并作为Junit运行时运行Junit案例,它会显示
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锁错误是什么?后满堆栈跟踪