test(java-cache): CachePropertiesTest.java (2/4)
This commit is contained in:
1 parent
9f068cc68e
commit
1b36fab443
1 file changed
+6
+6
@@ -9,4 +9,10 @@ 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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user