Skip to content

Commit 6a7c48e

Browse files
committed
Test name changes
1 parent 3bf4e2c commit 6a7c48e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

validator/api/src/test/java/tech/pegasys/teku/validator/api/UpdatableGraffitiProviderTest.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,33 +68,33 @@ public void get_shouldDelegateToDefaultProviderWhenStorageProviderFails() {
6868
}
6969

7070
@Test
71-
void getWithThrowable_shouldGetStorageGraffitiWhenAvailable() {
71+
void getUnsafe_shouldGetStorageGraffitiWhenAvailable() {
7272
provider = new UpdatableGraffitiProvider(() -> Optional.of(storageGraffiti), Optional::empty);
7373
assertThat(provider.getUnsafe()).hasValue(storageGraffiti);
7474
}
7575

7676
@Test
77-
void getWithThrowable_shouldGetStorageGraffitiWhenBothAvailable() {
77+
void getUnsafe_shouldGetStorageGraffitiWhenBothAvailable() {
7878
provider =
7979
new UpdatableGraffitiProvider(
8080
() -> Optional.of(storageGraffiti), () -> Optional.of(defaultGraffiti));
8181
assertThat(provider.getUnsafe()).hasValue(storageGraffiti);
8282
}
8383

8484
@Test
85-
void getWithThrowable_shouldGetDefaultGraffitiWhenStorageEmpty() {
85+
void getUnsafe_shouldGetDefaultGraffitiWhenStorageEmpty() {
8686
provider = new UpdatableGraffitiProvider(Optional::empty, () -> Optional.of(defaultGraffiti));
8787
assertThat(provider.getUnsafe()).hasValue(defaultGraffiti);
8888
}
8989

9090
@Test
91-
void getWithThrowable_shouldBeEmptyWhenBothEmpty() {
91+
void getUnsafe_shouldBeEmptyWhenBothEmpty() {
9292
provider = new UpdatableGraffitiProvider(Optional::empty, Optional::empty);
9393
assertThat(provider.getUnsafe()).isEmpty();
9494
}
9595

9696
@Test
97-
public void getWithThrowable_shouldThrowExceptionWhenStorageProviderFails() {
97+
public void getUnsafe_shouldThrowExceptionWhenStorageProviderFails() {
9898
final RuntimeException exception = new RuntimeException("Error");
9999
final Supplier<Optional<Bytes32>> storageProvider =
100100
() -> {

0 commit comments

Comments
 (0)