diff --git a/validator/api/src/test/java/tech/pegasys/teku/validator/api/UpdatableGraffitiProviderTest.java b/validator/api/src/test/java/tech/pegasys/teku/validator/api/UpdatableGraffitiProviderTest.java index 25dd875cd37..f9b10295389 100644 --- a/validator/api/src/test/java/tech/pegasys/teku/validator/api/UpdatableGraffitiProviderTest.java +++ b/validator/api/src/test/java/tech/pegasys/teku/validator/api/UpdatableGraffitiProviderTest.java @@ -68,13 +68,13 @@ public void get_shouldDelegateToDefaultProviderWhenStorageProviderFails() { } @Test - void getWithThrowable_shouldGetStorageGraffitiWhenAvailable() { + void getUnsafe_shouldGetStorageGraffitiWhenAvailable() { provider = new UpdatableGraffitiProvider(() -> Optional.of(storageGraffiti), Optional::empty); assertThat(provider.getUnsafe()).hasValue(storageGraffiti); } @Test - void getWithThrowable_shouldGetStorageGraffitiWhenBothAvailable() { + void getUnsafe_shouldGetStorageGraffitiWhenBothAvailable() { provider = new UpdatableGraffitiProvider( () -> Optional.of(storageGraffiti), () -> Optional.of(defaultGraffiti)); @@ -82,19 +82,19 @@ void getWithThrowable_shouldGetStorageGraffitiWhenBothAvailable() { } @Test - void getWithThrowable_shouldGetDefaultGraffitiWhenStorageEmpty() { + void getUnsafe_shouldGetDefaultGraffitiWhenStorageEmpty() { provider = new UpdatableGraffitiProvider(Optional::empty, () -> Optional.of(defaultGraffiti)); assertThat(provider.getUnsafe()).hasValue(defaultGraffiti); } @Test - void getWithThrowable_shouldBeEmptyWhenBothEmpty() { + void getUnsafe_shouldBeEmptyWhenBothEmpty() { provider = new UpdatableGraffitiProvider(Optional::empty, Optional::empty); assertThat(provider.getUnsafe()).isEmpty(); } @Test - public void getWithThrowable_shouldThrowExceptionWhenStorageProviderFails() { + public void getUnsafe_shouldThrowExceptionWhenStorageProviderFails() { final RuntimeException exception = new RuntimeException("Error"); final Supplier> storageProvider = () -> {