mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Fix tests failing after upgrading EventBus
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								app/src/test/java/eu/kanade/tachiyomi/TestApp.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								app/src/test/java/eu/kanade/tachiyomi/TestApp.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
package eu.kanade.tachiyomi;
 | 
			
		||||
 | 
			
		||||
public class TestApp extends App {
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    protected void setupEventBus() {
 | 
			
		||||
        // Do nothing
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user