diff --git a/platform/java-cache/src/test/java/com/hoelee/platform/cache/CachePropertiesTest.java b/platform/java-cache/src/test/java/com/hoelee/platform/cache/CachePropertiesTest.java index d4d365bf..04bb6fff 100644 --- a/platform/java-cache/src/test/java/com/hoelee/platform/cache/CachePropertiesTest.java +++ b/platform/java-cache/src/test/java/com/hoelee/platform/cache/CachePropertiesTest.java @@ -15,4 +15,8 @@ class CachePropertiesTest { assertEquals(Duration.ofMinutes(5), props.ttl()); } + @Test + void ttlIsRequired() { + assertNotNull(new CacheProperties(1, Duration.ofSeconds(1)).ttl()); + } }