class TestCounters extends Object
StringSerializer used in testing
will record its activities here. Please consider resetting the counters before/after a test.| Modifier and Type | Field and Description |
|---|---|
private static int |
cloneCount |
private static int |
fromCount |
private static int |
toCount |
| Constructor and Description |
|---|
TestCounters() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static int |
getCloneCount()
Returns the copy-counter value.
|
(package private) static int |
getFromCount()
Returns the from-counter value.
|
(package private) static int |
getToCount()
Returns the to-counter value.
|
(package private) static void |
increaseClone()
Increases the clone-counter (related to the
clone-method of the serializers. |
(package private) static void |
increaseFrom()
Increases the from-counter (related to the
from-method of the serializers. |
(package private) static void |
increaseTo()
Increases the to-counter (related to the
to-method of the serializers. |
(package private) static void |
reset()
Resets all counters.
|
private static int toCount
private static int fromCount
private static int cloneCount
static void reset()
static void increaseTo()
to-method of the serializers.static void increaseFrom()
from-method of the serializers.static void increaseClone()
clone-method of the serializers.static int getToCount()
OutputTypeTranslator.to(Object)static int getFromCount()
InputTypeTranslator.from(Object)static int getCloneCount()
Serializer.clone(Object)Copyright © 2022. All rights reserved.