Class CliProgress
- java.lang.Object
-
- net.avcompris.base.testutil.processes.CliProgress
-
public class CliProgress extends java.lang.Object
This class gives the user a feedback about a running CLI process. The idea is for instance to print to the console ow many lines have been read from a database.- Author:
- David Andrianavalontsalama
-
-
Constructor Summary
Constructors Constructor Description CliProgress()
CliProgress(java.lang.String message)
-
-
-
Method Detail
-
inc
public int inc()
Tell the class the process is running, and a step is running. This displays the current increment count, if one second was elapsed from the last time.- Returns:
- the current increment count.
-
end
public void end()
Tell the class the process is done. This displays the total increments.
-
-