rename PluginCenterEvent

This commit is contained in:
Eduard Heimbuch
2020-04-02 13:37:05 +02:00
parent 405bc392a8
commit b369fac1e8
3 changed files with 4 additions and 4 deletions

View File

@@ -79,11 +79,11 @@ class PluginCenterLoaderTest {
}
@Test
void shouldThrowExceptionAndFirePluginCenterNotAvailableEvent() throws IOException {
void shouldFirePluginCenterErrorEvent() throws IOException {
when(client.get(PLUGIN_URL).request()).thenThrow(new IOException("failed to fetch"));
loader.load(PLUGIN_URL);
verify(eventBus).post(any(PluginCenterEvent.class));
verify(eventBus).post(any(PluginCenterErrorEvent.class));
}
}