Fix tests failing after upgrading EventBus

This commit is contained in:
inorichi 2016-02-09 22:07:14 +01:00
parent 872af276ea
commit e50c683159
2 changed files with 15 additions and 2 deletions

View File

@ -40,12 +40,16 @@ public class App extends Application {
componentInjector =
new ComponentReflectionInjector<>(AppComponent.class, applicationComponent);
setupEventBus();
ACRA.init(this);
}
protected void setupEventBus() {
EventBus.builder()
.addIndex(new EventBusIndex())
.logNoSubscriberMessages(false)
.installDefaultEventBus();
ACRA.init(this);
}
public AppComponent getComponent() {

View File

@ -0,0 +1,9 @@
package eu.kanade.tachiyomi;
public class TestApp extends App {
@Override
protected void setupEventBus() {
// Do nothing
}
}