Here is the code. I am wondering about how to create a test for the constructor. There are no getters for the last two fields.
public class Log implements Reporter {
/**The number of passengers processed*/
private int numCompleted;
/** The total wait time.*/
private int totalWaitTime;
/** The total process time*/
private int totalProcessTime;
/**
* The log constructor.
*/
public Log() {
this.numCompleted = 0;
this.totalWaitTime = 0;
this.totalProcessTime = 0;
}
@Override
public int getNumCompleted() {
return numCompleted;
}