Skip to content

Commit 244cf1d

Browse files
committed
PR aws-powertools#717: move cache to utilities
1 parent ee5e4cb commit 244cf1d

File tree

2 files changed

+3
-5
lines changed
  • powertools-utilities/src

2 files changed

+3
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* limitations under the License.
1212
*
1313
*/
14-
package software.amazon.lambda.powertools.idempotency.persistence.cache;
14+
package software.amazon.lambda.powertools.utilities.cache;
1515

1616
import java.util.LinkedHashMap;
1717
import java.util.Map;
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* limitations under the License.
1212
*
1313
*/
14-
package software.amazon.lambda.powertools.idempotency.persistence.cache;
14+
package software.amazon.lambda.powertools.utilities.cache;
1515

1616
import org.junit.jupiter.api.Test;
1717

@@ -28,8 +28,6 @@ public void testLRUCache_shouldRemoveEldestEntry() {
2828
cache.put("key4", "value4");
2929
cache.put("key5", "value5");
3030

31-
assertThat(cache).hasSize(3);
32-
assertThat(cache.get("key1")).isNull();
33-
assertThat(cache.get("key2")).isNull();
31+
assertThat(cache).hasSize(3).doesNotContainKeys("key1", "key2");
3432
}
3533
}

0 commit comments

Comments
 (0)