Class CounterRepresentationTest
java.lang.Object
test.de.iip_ecosphere.platform.services.environment.metricsProvider.meterRepresentations.CounterRepresentationTest
Tests
CounterRepresentation.- Author:
- Miguel Gomez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTestsCounterRepresentation.getUpdater().voidTestsCounterRepresentation.parseCounter(JsonObject, String...).voidTestsCounterRepresentation.parseCounter(JsonObject, String...).voidTestsCounterRepresentation.parseCounter(JsonObject, String...).voidTestsCounterRepresentation.parseCounter(JsonObject, String...).voidTestsCounterRepresentation.parseCounter(JsonObject, String...).voidTestsCounterRepresentation.parseCounter(JsonObject, String...).voidTestsCounterRepresentation.parseCounter(JsonObject, String...).voidTestsCounterRepresentation.measure().voidTestsCounterRepresentation.createNewCounter(String).
-
Field Details
-
FOLDER
- See Also:
-
JSON_VALID
- See Also:
-
JSON_UPDATER
- See Also:
-
JSON_INVALID_TWO_MEASUREMENTS
- See Also:
-
JSON_INVALID_WRONG_STATISTIC
- See Also:
-
-
Constructor Details
-
CounterRepresentationTest
public CounterRepresentationTest()
-
-
Method Details
-
testInitOkNoTags
TestsCounterRepresentation.parseCounter(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitOkWithTags
TestsCounterRepresentation.parseCounter(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadTwoMeasurements
TestsCounterRepresentation.parseCounter(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitBadWrongStatistic
TestsCounterRepresentation.parseCounter(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testIncrementByOne
TestsCounterRepresentation.parseCounter(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testIncrementByZero
TestsCounterRepresentation.parseCounter(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testIncrementByNegativeOne
TestsCounterRepresentation.parseCounter(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testGetUpdater
TestsCounterRepresentation.getUpdater().- Throws:
IOException- shall not occur when test is passed
-
testMeasure
TestsCounterRepresentation.measure().- Throws:
IOException- shall not occur when test is passed
-
testNameInitOk
public void testNameInitOk()TestsCounterRepresentation.createNewCounter(String).
-