有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Heroku与junit 5

当我用junit 5在heroku中构建应用程序时, 这是在推的时候发生的

remote:        [INFO] BUILD FAILURE
remote:        [INFO] ------------------------------------------------------------------------
remote:        [INFO] Total time:  18.789 s
remote:        [INFO] Finished at: 2021-08-31T12:58:29Z
remote:        [INFO] ------------------------------------------------------------------------
remote:        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project minhasfinancas: Compilation failure: Compilation failure:
remote:        [ERROR] /tmp/build_03ef1fbc/src/test/java/com/estudo/minhasfinancas/service/UsuarioServiceTest.java:[3,24] cannot find symbol
remote:        [ERROR]   symbol:   class Assert
remote:        [ERROR]   location: package org.junit
remote:        [ERROR] /tmp/build_03ef1fbc/src/test/java/com/estudo/minhasfinancas/service/UsuarioServiceTest.java:[3,1] static import only from classes and interfaces
remote:        [ERROR] 

共 (0) 个答案