use of com.att.aro.core.peripheral.pojo.AppInfo in project VideoOptimzer by attdevsupport.
the class AppInfoReaderImplTest method readData.
@Test
public void readData() throws IOException {
Mockito.when(filereader.fileExist(Mockito.anyString())).thenReturn(true);
String[] arr = new String[] { "\"/system/bin/rild\"1.1", "./data/data/com.att.android.arodatacollector/tcpdump 4.1" };
Mockito.when(filereader.readAllLine(Mockito.anyString())).thenReturn(arr);
AppInfo info = reader.readData("/");
assertTrue(info.getAppInfos().size() == 2);
assertTrue(info.getAppInfos().get(1).contains("tcpdump"));
}
use of com.att.aro.core.peripheral.pojo.AppInfo in project VideoOptimzer by attdevsupport.
the class AppInfoReaderImplTest method readDataNoFile.
@Test
public void readDataNoFile() throws IOException {
Mockito.when(filereader.fileExist(Mockito.anyString())).thenReturn(false);
AppInfo info = null;
info = reader.readData("/");
assertTrue(info.getAppInfos().size() == 0);
}
Aggregations