Class TimerRepresentationTest
java.lang.Object
test.de.iip_ecosphere.platform.services.environment.metricsProvider.meterRepresentations.TimerRepresentationTest
Tests
TimerRepresentation.- Author:
- Miguel Gomez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate static final Stringprivate static final doubleprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTestsTimerRepresentation.getUpdater().voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.parseTimer(JsonObject, String...).voidTestsTimerRepresentation.max(TimeUnit).voidTestsTimerRepresentation.measure().voidTestsTimerRepresentation.createNewTimer(String).voidTestsTimerRepresentation.recordCallable(java.util.concurrent.Callable).voidTestsTimerRepresentation.count(),TimerRepresentation.totalTime(TimeUnit)andTimerRepresentation.max(TimeUnit).voidTestsTimerRepresentation.record(Runnable).voidTestsTimerRepresentation.record(java.util.function.Supplier).voidTestsTimerRepresentation.totalTime(TimeUnit).
-
Field Details
-
FOLDER
- See Also:
-
JSON_VALID
- See Also:
-
JSON_CLEAN
- See Also:
-
JSON_SINGLE
- See Also:
-
JSON_INVALID_BASE_UNIT
- See Also:
-
JSON_INVALID_TWO_MEASUREMENTS
- See Also:
-
JSON_INVALID_FOUR_MEASUREMENTS
- See Also:
-
JSON_INVALID_WRONG_STATISTIC
- See Also:
-
JSON_INVALID_TWO_COUNT
- See Also:
-
JSON_INVALID_TWO_TOTAL
- See Also:
-
JSON_INVALID_TWO_MAX
- See Also:
-
NANOS
private static final double NANOS- See Also:
-
MICROS
private static final double MICROS- See Also:
-
MILLIS
private static final double MILLIS- See Also:
-
SECONDS
private static final double SECONDS- See Also:
-
MINUTES
private static final double MINUTES- See Also:
-
HOURS
private static final double HOURS- See Also:
-
DAYS
private static final double DAYS- See Also:
-
-
Constructor Details
-
TimerRepresentationTest
public TimerRepresentationTest()
-
-
Method Details
-
testInitOkNoTags
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitOkWithTags
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadInvalidBaseUnit
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadTwoMeasurements
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadFourMeasurements
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadWrongStatistic
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadTwoCount
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadTwoTotal
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadTwoMax
TestsTimerRepresentation.parseTimer(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testRecordLong
TestsTimerRepresentation.count(),TimerRepresentation.totalTime(TimeUnit)andTimerRepresentation.max(TimeUnit).- Throws:
IOException- shall not occur when test is passed
-
testRecordSupplier
TestsTimerRepresentation.record(java.util.function.Supplier).- Throws:
IOException- shall not occur when test is passed
-
testRecordCallable
TestsTimerRepresentation.recordCallable(java.util.concurrent.Callable).- Throws:
Exception- shall not occur when test is passed
-
testRecordRunnable
TestsTimerRepresentation.record(Runnable).- Throws:
IOException- shall not occur when test is passed
-
testTotalTimeConversion
TestsTimerRepresentation.totalTime(TimeUnit).- Throws:
IOException- shall not occur when test is passed
-
testMaxTimeConversion
TestsTimerRepresentation.max(TimeUnit).- Throws:
IOException- shall not occur when test is passed
-
testGetUpdater
TestsTimerRepresentation.getUpdater().- Throws:
Exception- shall not occur when test is passed
-
testMeasure
TestsTimerRepresentation.measure().- Throws:
IOException- shall not occur when test is passed
-
testNameInitOk
public void testNameInitOk()TestsTimerRepresentation.createNewTimer(String).
-