test(java-cache): CachePropertiesTest case 1/2

This commit is contained in:
hoelee committed 2026-04-06 09:00:00 +08:00
1 parent d2b6e6dbc6
commit a6f45f8c7d
1 file changed
+18
@@ -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());
}
}