jhipster mvn package liquibase:update提供错误但更新数据库

时间:2018-06-12 14:33:28

标签: spring-boot jhipster

我创建了一个基本的jhipster应用程序,但是在H2数据库中我选择了一个postgresql数据库。我正确配置了它并在从我的sts 3.9运行 mvn liquibase:update 后,我得到了这些测试失败。然而,该命令成功更新了我的数据库,但我关注错误列表。

   assertThatUserCanBeFoundByEmailIgnoreCase(com.jhipster.example.security.DomainUserDetailsServiceIntTest)  Time elapsed: 0.001 sec  <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
    at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)
    at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
    at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:189)
    at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:131)
    at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)



Running com.jhipster.example.security.SecurityUtilsUnitTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.jhipster.example.security.SecurityUtilsUnitTest
Running com.jhipster.example.security.jwt.JWTFilterTest
2018-06-12 10:15:52.900  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Invalid JWT token.
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.342 sec - in com.jhipster.example.security.jwt.JWTFilterTest
Running com.jhipster.example.security.jwt.TokenProviderTest
2018-06-12 10:15:54.528  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : JWT token compact of handler are invalid.
2018-06-12 10:15:54.531  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Expired JWT token.
2018-06-12 10:15:54.534  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Invalid JWT signature.
2018-06-12 10:15:54.539  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Invalid JWT token.
2018-06-12 10:15:54.542  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Unsupported JWT token.
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in com.jhipster.example.security.jwt.TokenProviderTest
Running com.jhipster.example.service.MailServiceIntTest

我也注意到有关jwt问题的信息,为什么会这样?

0 个答案:

没有答案