Unit tests are always in engmode
This commit is contained in:
parent
c6e8ab35b6
commit
18521d6634
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue