@Test public void installPayloadFile() throws Exception { IAroDevice aroDevice = Mockito.mock(IAroDevice.class); Mockito.when(aroDevice.getDevice()).thenReturn(device); Mockito.when(extractor.extractFiles(Mockito.anyString(), Mockito.anyString(), Mockito.any(ClassLoader.class))).thenReturn(true); Mockito.when(android.pushFile(Mockito.any(IDevice.class), Mockito.anyString(), Mockito.anyString())).thenReturn(true); Mockito.when(fileManager.deleteFile(Mockito.anyString())).thenReturn(true); boolean success = adbService.installPayloadFile(aroDevice, "local", "file", "remote"); assertTrue(success); }
@Override public boolean installPayloadFile(IAroDevice aroDevice, String tempFolder, String payloadFileName, String remotepath) { return installPayloadFile((IDevice)aroDevice.getDevice(), tempFolder, payloadFileName, remotepath); }
AdbServiceImpl implements IAdbService { @Override public boolean installPayloadFile(IAroDevice aroDevice, String tempFolder, String payloadFileName, String remotepath) { return installPayloadFile((IDevice)aroDevice.getDevice(), tempFolder, payloadFileName, remotepath); } }
AdbServiceImpl implements IAdbService { @Override public boolean installPayloadFile(IAroDevice aroDevice, String tempFolder, String payloadFileName, String remotepath) { return installPayloadFile((IDevice)aroDevice.getDevice(), tempFolder, payloadFileName, remotepath); }  }
AdbServiceImpl implements IAdbService { @Override public boolean installPayloadFile(IAroDevice aroDevice, String tempFolder, String payloadFileName, String remotepath) { return installPayloadFile((IDevice)aroDevice.getDevice(), tempFolder, payloadFileName, remotepath); }  @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 installPayloadFile(IAroDevice aroDevice, String tempFolder, String payloadFileName, String remotepath) { return installPayloadFile((IDevice)aroDevice.getDevice(), tempFolder, payloadFileName, remotepath); }  @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);  }