yangfuhai / jboot

一个优雅的微服务框架,SpringCloud 之外的另一个选择,已经使用在用户量过亿的商业产品上,有超过1000家公司在使用Jboot做极速开发...
http://www.jboot.com.cn
Apache License 2.0
732 stars 252 forks source link

Fixing tests in J2Cache Tester and RedisCacheTester #97

Closed alany9552 closed 2 years ago

alany9552 commented 3 years ago

There are in total of 5 tests failing:

First 2 from j2cache tests class:

io.jboot.test.cache.j2cache.J2CacheTester.testGet
io.jboot.test.cache.j2cache.J2CacheTester.testPut

Second 3 from redis tests class:

io.jboot.test.cache.redis.RedisCacheTester.testCacheType
io.jboot.test.cache.redis.RedisCacheTester.testGet
io.jboot.test.cache.redis.RedisCacheTester.testPut

The error message is: java.lang.NoClassDefFoundError: redis/clients/jedis/BinaryJedisCommands

Fixing like this will passes both io.jboot.test.cache.j2cache.J2CacheTester.testGet and io.jboot.test.cache.j2cache.J2CacheTester.testPut, because there are no problems in the assertion phase, but the configuration phase. The problem comes due to the connection to external server.