nnjf-financing_test模块遇到的问题

一、用idea自带的覆盖率运行

  • 点击选中nnjf-financing_test,右键run…with coverage
    nnjf-financing_test模块遇到的问题_第1张图片
  • 日志里一直出现以下问题
    nnjf-financing_test模块遇到的问题_第2张图片

原因:没有起eureka服务,
如下,选中Eureka,点击运行即可。
nnjf-financing_test模块遇到的问题_第3张图片

二、选择test目录下,右键run…with coverage

应该是选中test目录进行coverage
nnjf-financing_test模块遇到的问题_第4张图片
1、报错:

[2019.12.17 20:54:07] (Coverage): Error during class instrumentation: org.springframework.mail.javamail.JavaMailSenderImpl: java.lang.RuntimeException: java.io.IOException: Class not found
[2019.12.17 20:54:08] (Coverage): Error during class instrumentation: org.springframework.data.redis.connection.jedis.JedisConnection: java.lang.RuntimeException: java.io.IOException: Class not found


[2019.12.17 20:54:18] (Coverage): Error during class instrumentation: org.springframework.cloud.openfeign.ribbon.RetryableFeignLoadBalancer: java.lang.RuntimeException: java.io.IOException: Class not found
[WARN ]:2019-12-17 20:54:19 [main] MybatisSqlSessionFactoryBean:44 - Can't find class in '[com.nuonuo.nnjf.financing.enums]' package. Please check your configuration.
[WARN ]:2019-12-17 20:54:20 [main] TableInfoHelper:280 - Warn: Could not find @TableId in Class: com.nuonuo.nnjf.financing.entity.CreditAccount.
[WARN ]:2019-12-17 20:54:20 [main] TableInfoHelper:280 - Warn: Could not find @TableId in Class: com.nuonuo.nnjf.financing.entity.CreditLoan.
[WARN ]:2019-12-17 20:54:21 [main] TableInfoHelper:280 - Warn: Could not find @TableId in Class: com.nuonuo.nnjf.financing.entity.InvoiceImpRecord.
[WARN ]:2019-12-17 20:54:21 [main] TableInfoHelper:280 - Warn: Could not find @TableId in Class: com.nuonuo.nnjf.financing.entity.SettlementConfig.



[2019.12.17 20:54:24] (Coverage): Error during class instrumentation: com.xxl.rpc.serialize.impl.ProtostuffSerializer: java.lang.RuntimeException: java.io.IOException: Class not found
[INFO ]:2019-12-17 20:54:24 [main] XxlRpcProviderFactory:176 - >>>>>>>>>>> xxl-rpc, provider factory add service success. serviceKey = com.xxl.job.core.biz.ExecutorBiz, serviceBean = class com.xxl.job.core.biz.impl.ExecutorBizImpl
[WARN ]:2019-12-17 20:54:24 [main] URLConfigurationSource:121 - No URLs will be polled as dynamic configuration sources.
[INFO ]:2019-12-17 20:54:24 [main] URLConfigurationSource:122 - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
[INFO ]:2019-12-17 20:54:25 [Thread-8] Server:62 - >>>>>>>>>>> xxl-rpc remoting server start success, nettype = com.xxl.rpc.remoting.net.impl.netty_http.server.NettyHttpServer, port = 9703
[INFO ]:2019-12-17 20:54:25 [main] ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor'

2、报错:Application run failed
nnjf-financing_test模块遇到的问题_第5张图片

  • 原因:xxl-rpc provider port[9703] is used
    nnjf-financing_test模块遇到的问题_第6张图片
    解决:
    9703这个端口是financing里面xxl-job,把financing服务关掉就可以了。

三、单个运行用例时,报错nnjf-financing_test模块遇到的问题_第7张图片

解决:

  • 要起Eureka
  • 有端口就正常
    nnjf-financing_test模块遇到的问题_第8张图片

四、feign.FeignException: status 500 reading AreaCommonService#getAreaNameByCode(String)

如下图所示:
nnjf-financing_test模块遇到的问题_第9张图片
nnjf-financing_test模块遇到的问题_第10张图片

你可能感兴趣的:(项目运行)