@Test public void isAdbFileExist() throws Exception { Mockito.when(fileManager.fileExist(Mockito.anyString())).thenReturn(true); boolean adbExists = adbService.isAdbFileExist(); assertTrue(adbExists); Mockito.when(fileManager.fileExist(Mockito.anyString())).thenReturn(false); adbExists = adbService.isAdbFileExist(); assertTrue(!adbExists); }
@Override public boolean isAdbFileExist() { return fileManager.fileExist(getAROConfigFileLocation()); }
AdbServiceImpl implements IAdbService { @Override public boolean isAdbFileExist() { return fileManager.fileExist(getAROConfigFileLocation()); } }
AdbServiceImpl implements IAdbService { @Override public boolean isAdbFileExist() { return fileManager.fileExist(getAROConfigFileLocation()); }  }
AdbServiceImpl implements IAdbService { @Override public boolean isAdbFileExist() { return fileManager.fileExist(getAROConfigFileLocation()); }  @Autowired void setAndroid(IAndroid android); @Autowired void setExternalProcessRunner(IExternalProcessRunner runner); @Autowired void setFileExtactor(IReadWriteFileExtractor extractor); @Autowired void setFileManager(IFileManager fileManager); @Autowired void setAROConfigFile(Settings configFile); @Override boolean hasADBpath(); @Override String getAdbPath(); @Override String getAdbPath(boolean unfiltered); @Override boolean isAdbFileExist(); @Override AndroidDebugBridge initCreateBridge(String adbPath); @Override AndroidDebugBridge ensureADBServiceStarted(); @Override IDevice[] getConnectedDevices(); @Override FileEntry locate(IDevice device, FileEntry rootPath, String path); boolean pullFile(SyncService service, String remotePath, String file, String localFolder); @Override boolean installPayloadFile(IAroDevice aroDevice, String tempFolder, String payloadFileName, String remotepath); @Override boolean installPayloadFile(IDevice device, String tempFolder, String payloadFileName, String remotepath); @Override String[] getApplicationList(String id); }
AdbServiceImpl implements IAdbService { @Override public boolean isAdbFileExist() { return fileManager.fileExist(getAROConfigFileLocation()); }  @Autowired void setAndroid(IAndroid android); @Autowired void setExternalProcessRunner(IExternalProcessRunner runner); @Autowired void setFileExtactor(IReadWriteFileExtractor extractor); @Autowired void setFileManager(IFileManager fileManager); @Autowired void setAROConfigFile(Settings configFile); @Override boolean hasADBpath(); @Override String getAdbPath(); @Override String getAdbPath(boolean unfiltered); @Override boolean isAdbFileExist(); @Override AndroidDebugBridge initCreateBridge(String adbPath); @Override AndroidDebugBridge ensureADBServiceStarted(); @Override IDevice[] getConnectedDevices(); @Override FileEntry locate(IDevice device, FileEntry rootPath, String path); boolean pullFile(SyncService service, String remotePath, String file, String localFolder); @Override boolean installPayloadFile(IAroDevice aroDevice, String tempFolder, String payloadFileName, String remotepath); @Override boolean installPayloadFile(IDevice device, String tempFolder, String payloadFileName, String remotepath); @Override String[] getApplicationList(String id);  }