@Test public void getActiveDuration() throws IOException { Mockito.when(filereader.fileExist(Mockito.anyString())).thenReturn(true); Mockito.when(filereader.readAllLine(Mockito.anyString())).thenReturn(new String[] { "1.413913535177E9 OFF" ,"1.413913591806E9 ON" ,"1.413913610613E9 OFF" ,"1.413913620683E9 ON" ,"1.413913620883E9 OFF" ,"1.413913622533E9 OFF" ,"" }); info = cameraReader.readData(traceFolder, 0, 0); double activeDuration = cameraReader.getActiveDuration(); assertEquals(19.007, ((double)Math.round(activeDuration*1000.0))/1000, 0); }
@Override public double getActiveDuration() { return this.activeDuration; }
CameraInfoReaderImpl extends PeripheralBase implements ICameraInfoReader { @Override public double getActiveDuration() { return this.activeDuration; } }
CameraInfoReaderImpl extends PeripheralBase implements ICameraInfoReader { @Override public double getActiveDuration() { return this.activeDuration; }  }
CameraInfoReaderImpl extends PeripheralBase implements ICameraInfoReader { @Override public double getActiveDuration() { return this.activeDuration; }  @Override List<CameraInfo> readData(String directory, double startTime,
			double traceDuration); @Override double getActiveDuration(); }
CameraInfoReaderImpl extends PeripheralBase implements ICameraInfoReader { @Override public double getActiveDuration() { return this.activeDuration; }  @Override List<CameraInfo> readData(String directory, double startTime,
			double traceDuration); @Override double getActiveDuration();  }