[Update] CacheStore-API 应 CacheKey 更改, 完善相应单元测试;

[Update] CacheKeyTest 完善单元测试;
This commit is contained in:
LamGC 2020-11-12 21:40:21 +08:00
parent 80d47dd8cf
commit c9a4af8121
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -50,4 +50,11 @@ public class CacheKeyTest {
Assert.assertEquals("test:key01", new CacheKey("test", "key01").join(":"));
}
@Test
public void nullValueCheckTest() {
CacheKey test = new CacheKey("test", (String[]) null);
Assert.assertEquals("test", test.toString());
Assert.assertThrows(NullPointerException.class, () -> new CacheKey("test", (String) null));
}
}