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 new file mode 100644 index 00000000..d4d365bf --- /dev/null +++ b/platform/java-cache/src/test/java/com/hoelee/platform/cache/CachePropertiesTest.java @@ -0,0 +1,18 @@ +package com.hoelee.platform.cache; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; + +import java.time.Duration; +import org.junit.jupiter.api.Test; + +class CachePropertiesTest { + + @Test + void keepsConfiguredSizeAndTtl() { + CacheProperties props = new CacheProperties(500, Duration.ofMinutes(5)); + assertEquals(500, props.maximumSize()); + assertEquals(Duration.ofMinutes(5), props.ttl()); + } + +}