mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Update] CacheStore-API 应 CacheKey 更改, 完善相应单元测试;
[Update] CacheKeyTest 完善单元测试;
This commit is contained in:
parent
80d47dd8cf
commit
c9a4af8121
@ -50,4 +50,11 @@ public class CacheKeyTest {
|
|||||||
Assert.assertEquals("test:key01", new CacheKey("test", "key01").join(":"));
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user