@Test(expected = TraceeException.class) public void backendRetrievalShouldThrowExceptionWithMoreThenOneProvider() { final Set<TraceeBackendProvider> backendProvider = new HashSet<>(); backendProvider.add(new TestBackendProvider()); backendProvider.add(new TestBackendProvider()); final BackendProviderResolver resolver = createTestBackendResolverWith(backendProvider); try { Tracee.getBackend(resolver); } catch (TraceeException e) { assertThat(e.getMessage(), allOf(startsWith("Multiple TracEE backend providers found. Don't know which one of the following to use:"), containsString(TestBackendProvider.class.getSimpleName()))); 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();  }