@@ -68,33 +68,33 @@ public void get_shouldDelegateToDefaultProviderWhenStorageProviderFails() {
68
68
}
69
69
70
70
@ Test
71
- void getWithThrowable_shouldGetStorageGraffitiWhenAvailable () {
71
+ void getUnsafe_shouldGetStorageGraffitiWhenAvailable () {
72
72
provider = new UpdatableGraffitiProvider (() -> Optional .of (storageGraffiti ), Optional ::empty );
73
73
assertThat (provider .getUnsafe ()).hasValue (storageGraffiti );
74
74
}
75
75
76
76
@ Test
77
- void getWithThrowable_shouldGetStorageGraffitiWhenBothAvailable () {
77
+ void getUnsafe_shouldGetStorageGraffitiWhenBothAvailable () {
78
78
provider =
79
79
new UpdatableGraffitiProvider (
80
80
() -> Optional .of (storageGraffiti ), () -> Optional .of (defaultGraffiti ));
81
81
assertThat (provider .getUnsafe ()).hasValue (storageGraffiti );
82
82
}
83
83
84
84
@ Test
85
- void getWithThrowable_shouldGetDefaultGraffitiWhenStorageEmpty () {
85
+ void getUnsafe_shouldGetDefaultGraffitiWhenStorageEmpty () {
86
86
provider = new UpdatableGraffitiProvider (Optional ::empty , () -> Optional .of (defaultGraffiti ));
87
87
assertThat (provider .getUnsafe ()).hasValue (defaultGraffiti );
88
88
}
89
89
90
90
@ Test
91
- void getWithThrowable_shouldBeEmptyWhenBothEmpty () {
91
+ void getUnsafe_shouldBeEmptyWhenBothEmpty () {
92
92
provider = new UpdatableGraffitiProvider (Optional ::empty , Optional ::empty );
93
93
assertThat (provider .getUnsafe ()).isEmpty ();
94
94
}
95
95
96
96
@ Test
97
- public void getWithThrowable_shouldThrowExceptionWhenStorageProviderFails () {
97
+ public void getUnsafe_shouldThrowExceptionWhenStorageProviderFails () {
98
98
final RuntimeException exception = new RuntimeException ("Error" );
99
99
final Supplier <Optional <Bytes32 >> storageProvider =
100
100
() -> {
0 commit comments