org.junit.Assert.assertEquals("112", stringRedisTemplate.opsForValue().get("aaa"));

// 判断是否一致,不一致就会抛出异常,不一致的时候会提示预期值是多少,实际值是多少

org.junit.Assert.assertEquals("112", stringRedisTemplate.opsForValue().get("aaa"));

发布了58 篇原创文章 · 获赞 1 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/zh_chong/article/details/103829999
aaa