Метод |
Описание |
|
setUp ( ) |
As Manager prints on stdout, we use output buffering for the tests |
|
tearDown ( ) |
Clean output buffer after each test |
|
testAdvance ( ) |
Tests the advance method. |
|
testCustomReplacementRule ( ) |
Tests the use of custom replacements rules |
|
testEta ( ) |
Tests ETA |
|
testLowerIncrementThrowsException ( ) |
Tests that a lower increment throws an InvalidArgumentException |
|
testManagerFormat ( ) |
Test format getter and setter |
|
testMaxWidth ( ) |
Tests that the bar width does not exceed the max width specified
in constructor. |
|
testNonIntegerIncrementThrowsException ( ) |
Tests that a non integer increment throws an InvalidArgumentException |
|
testProgressOverflow ( ) |
Tests the situation when the value given to progressbar is greater than the manager size. |
|
testUpdate ( ) |
Tests update
When there is still work to do : print the bar with \r
When it s finished : print the bar with \n |
|