Skip to content

Commit

Permalink
Test name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyeh committed Apr 23, 2024
1 parent 3bf4e2c commit 6a7c48e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,33 +68,33 @@ 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));
assertThat(provider.getUnsafe()).hasValue(storageGraffiti);
}

@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<Optional<Bytes32>> storageProvider =
() -> {
Expand Down

0 comments on commit 6a7c48e

Please sign in to comment.