@Test(expected = MvcGraphException.class) public void should_throw_exception_when_mvc_graph_reference_on_non_main_thread() throws ProvideException, CircularDependenciesException, ProviderMissingException { graph.reference(String.class, null); when(graph.uiThreadRunner.isOnUiThread()).thenReturn(false); graph.reference(String.class, null); }
T instance; try { instance = Mvc.graph().reference(type, qualifier); } catch (PokeException e) { throw new MvcGraphException(e.getMessage(), e);