Class MeterRepresentationTest
java.lang.Object
test.de.iip_ecosphere.platform.services.environment.metricsProvider.meterRepresentations.MeterRepresentationTest
Tests meter representation via
GaugeRepresentation.- Author:
- Miguel Gomez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.createNewGauge(String).voidTestsGaugeRepresentation.createNewGauge(String).voidTestsGaugeRepresentation.createNewGauge(String).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).voidTestsGaugeRepresentation.parseGauge(JsonObject, String...).
-
Field Details
-
FOLDER
- See Also:
-
JSON_VALID
- See Also:
-
JSON_VALID_NO_BASE_UNIT
- See Also:
-
JSON_VALID_NO_DESCRIPTION
- See Also:
-
JSON_INVALID_NO_NAME
- See Also:
-
JSON_INVALID_NO_NAME_VALUE
- See Also:
-
JSON_INVALID_NO_BASE_UNIT
- See Also:
-
JSON_INVALID_NO_DESCRIPTION
- See Also:
-
-
Constructor Details
-
MeterRepresentationTest
public MeterRepresentationTest()
-
-
Method Details
-
testInitOkNoTags
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitOkWithTags
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitOkNoTagsNoBaseUnitValue
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitOkNoTagsNoDescriptionValue
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInitNullJson
public void testInitNullJson()TestsGaugeRepresentation.parseGauge(JsonObject, String...). -
testTagNoKey
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testTagNoValue
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testTagRandomString
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInvalidJsonNoName
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInvalidJsonNoNameValue
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInvalidJsonNoBaseUnit
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testInvalidJsonNoDescription
TestsGaugeRepresentation.parseGauge(JsonObject, String...).- Throws:
IOException- shall not occur when test is passed
-
testNameInitOk
public void testNameInitOk()TestsGaugeRepresentation.createNewGauge(String). -
testNameInitNullName
public void testNameInitNullName()TestsGaugeRepresentation.createNewGauge(String). -
testNameInitEmptyName
public void testNameInitEmptyName()TestsGaugeRepresentation.createNewGauge(String).
-