use of com.att.aro.core.peripheral.pojo.BatteryInfo in project VideoOptimzer by attdevsupport.
the class BatteryInfoReaderImplTest method readAllLineException.
@Test
public void readAllLineException() throws IOException {
Mockito.when(filereader.fileExist(Mockito.anyString())).thenReturn(true);
Mockito.when(filereader.readAllLine(Mockito.anyString())).thenThrow(new IOException("failed on purpose"));
List<BatteryInfo> batteryInfos = batteryreader.readData("/", 0);
assertTrue(batteryInfos.size() == 0);
}
Aggregations