Last active
December 26, 2015 04:08
-
-
Save nbuesing/7090461 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private SampleWidget sampleWidget; // do not initialize here, but at the end of the setUp() method... | |
| private SimpleEventBus = new SimpleEventBus(); | |
| @Before | |
| public void setUp() { | |
| GwtMockito.useProviderForType(SimpleEventBus.class, new FakeProvider() { | |
| @Override | |
| public Object getFake(Class aClass) { | |
| return simpleEventBus; | |
| } | |
| }); | |
| sampleWidget = new SampleWidget(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment