Unit tests are always in engmode

This commit is contained in:
Markus M. May 2018-03-17 21:48:58 +01:00
parent c6e8ab35b6
commit 18521d6634

View file

@ -115,6 +115,7 @@ public class CommandQueueTest extends CommandQueue {
PowerMockito.mockStatic(MainApp.class); PowerMockito.mockStatic(MainApp.class);
MainApp mainApp = mock(MainApp.class); MainApp mainApp = mock(MainApp.class);
when(MainApp.getConfigBuilder()).thenReturn(configBuilderPlugin); when(MainApp.getConfigBuilder()).thenReturn(configBuilderPlugin);
when(MainApp.isDevModeOrRelease()).thenReturn(true);
when(MainApp.instance()).thenReturn(mainApp); when(MainApp.instance()).thenReturn(mainApp);
PowerMockito.mockStatic(ToastUtils.class); PowerMockito.mockStatic(ToastUtils.class);