@Test public void isEmulator_ResultIsFalse() { IDevice device = mock(IDevice.class); when(device.isEmulator()).thenReturn(false); assertFalse(androidImpl.isEmulator(device)); }
@Override public boolean isEmulator(IDevice device) { return device.isEmulator(); }
AndroidImpl implements IAndroid { @Override public boolean isEmulator(IDevice device) { return device.isEmulator(); } }
AndroidImpl implements IAndroid { @Override public boolean isEmulator(IDevice device) { return device.isEmulator(); }  }
AndroidImpl implements IAndroid { @Override public boolean isEmulator(IDevice device) { return device.isEmulator(); }  boolean setExecutePermission(IDevice device, String remotePath); @Override boolean isEmulator(IDevice device); ShellOutputReceiver getShellOutput(); ShellCommandCheckSDCardOutputReceiver getOutputReturn(); @Override boolean pushFile(IDevice emulator, String local, String remote); @Override DeviceState getState(IDevice device); @Override boolean isSDCardAttached(IDevice device); @Override boolean isSDCardEnoughSpace(IDevice device, long kbs); @Override boolean pullTraceFilesFromEmulator(IDevice device, String remoteFilepath, String localFilename); @Override boolean pullTraceFilesFromDevice(IDevice device, String remoteFilepath, String localFilename); @Override boolean makeAROTraceDirectory(IDevice device, String traceName); @Override boolean makeDirectory(IDevice device, String dirpath); @Override String getProperty(IDevice device, String property); @Override SyncService getSyncService(IDevice device); @Override boolean removeEmulatorData(IDevice device, String deviceTracePath); @Override boolean stopTcpDump(IDevice device); Socket getLocalSocket(); @Override boolean checkTcpDumpRunning(IDevice device); @Override boolean startTcpDump(IDevice device, boolean seLinuxEnforced, String traceFolderName); @Override boolean isTraceRunning(); @Override String[] getShellReturn(IDevice device, String arocmd); @Override boolean checkPackageExist(IDevice device, String fullpackageName); @Override boolean runApkInDevice(IDevice device, String cmd); @Override boolean runVpnApkInDevice(IDevice device); }
AndroidImpl implements IAndroid { @Override public boolean isEmulator(IDevice device) { return device.isEmulator(); }  boolean setExecutePermission(IDevice device, String remotePath); @Override boolean isEmulator(IDevice device); ShellOutputReceiver getShellOutput(); ShellCommandCheckSDCardOutputReceiver getOutputReturn(); @Override boolean pushFile(IDevice emulator, String local, String remote); @Override DeviceState getState(IDevice device); @Override boolean isSDCardAttached(IDevice device); @Override boolean isSDCardEnoughSpace(IDevice device, long kbs); @Override boolean pullTraceFilesFromEmulator(IDevice device, String remoteFilepath, String localFilename); @Override boolean pullTraceFilesFromDevice(IDevice device, String remoteFilepath, String localFilename); @Override boolean makeAROTraceDirectory(IDevice device, String traceName); @Override boolean makeDirectory(IDevice device, String dirpath); @Override String getProperty(IDevice device, String property); @Override SyncService getSyncService(IDevice device); @Override boolean removeEmulatorData(IDevice device, String deviceTracePath); @Override boolean stopTcpDump(IDevice device); Socket getLocalSocket(); @Override boolean checkTcpDumpRunning(IDevice device); @Override boolean startTcpDump(IDevice device, boolean seLinuxEnforced, String traceFolderName); @Override boolean isTraceRunning(); @Override String[] getShellReturn(IDevice device, String arocmd); @Override boolean checkPackageExist(IDevice device, String fullpackageName); @Override boolean runApkInDevice(IDevice device, String cmd); @Override boolean runVpnApkInDevice(IDevice device);  }