@Test(expected = TraceeException.class) public void backendRetrievalShouldWrapRuntimeExceptionIfItOccurs() { try { final BackendProviderResolver testBackendProvider = Mockito.mock(BackendProviderResolver.class); when(testBackendProvider.getBackendProviders()).thenThrow(new RuntimeException()); Tracee.getBackend(testBackendProvider); fail(); } catch (RuntimeException e) { assertThat(e.getMessage(), equalTo("Unable to load available backend providers")); throw e; } }
public static TraceeBackend getBackend() { return getBackend(new BackendProviderResolver()); }
Tracee { public static TraceeBackend getBackend() { return getBackend(new BackendProviderResolver()); } }
Tracee { public static TraceeBackend getBackend() { return getBackend(new BackendProviderResolver()); } private  Tracee(); }
Tracee { public static TraceeBackend getBackend() { return getBackend(new BackendProviderResolver()); } private  Tracee(); static TraceeBackend getBackend(); }
Tracee { public static TraceeBackend getBackend() { return getBackend(new BackendProviderResolver()); } private  Tracee(); static TraceeBackend getBackend();  }