@@ -70,29 +70,29 @@ public void get_shouldDelegateToDefaultProviderWhenStorageProviderFails() throws
70
70
}
71
71
72
72
@ Test
73
- void getWithThrowable_shouldGetStorageGraffitiWhenAvailable () {
73
+ void getWithThrowable_shouldGetStorageGraffitiWhenAvailable () throws Throwable {
74
74
provider = new UpdatableGraffitiProvider (() -> Optional .of (storageGraffiti ), Optional ::empty );
75
- assertThat (provider .get ()).hasValue (storageGraffiti );
75
+ assertThat (provider .getWithThrowable ()).hasValue (storageGraffiti );
76
76
}
77
77
78
78
@ Test
79
- void getWithThrowable_shouldGetStorageGraffitiWhenBothAvailable () {
79
+ void getWithThrowable_shouldGetStorageGraffitiWhenBothAvailable () throws Throwable {
80
80
provider =
81
81
new UpdatableGraffitiProvider (
82
82
() -> Optional .of (storageGraffiti ), () -> Optional .of (defaultGraffiti ));
83
- assertThat (provider .get ()).hasValue (storageGraffiti );
83
+ assertThat (provider .getWithThrowable ()).hasValue (storageGraffiti );
84
84
}
85
85
86
86
@ Test
87
- void getWithThrowable_shouldGetDefaultGraffitiWhenStorageEmpty () {
87
+ void getWithThrowable_shouldGetDefaultGraffitiWhenStorageEmpty () throws Throwable {
88
88
provider = new UpdatableGraffitiProvider (Optional ::empty , () -> Optional .of (defaultGraffiti ));
89
- assertThat (provider .get ()).hasValue (defaultGraffiti );
89
+ assertThat (provider .getWithThrowable ()).hasValue (defaultGraffiti );
90
90
}
91
91
92
92
@ Test
93
- void getWithThrowable_shouldBeEmptyWhenBothEmpty () {
93
+ void getWithThrowable_shouldBeEmptyWhenBothEmpty () throws Throwable {
94
94
provider = new UpdatableGraffitiProvider (Optional ::empty , Optional ::empty );
95
- assertThat (provider .get ()).isEmpty ();
95
+ assertThat (provider .getWithThrowable ()).isEmpty ();
96
96
}
97
97
98
98
@ Test
0 commit comments