public class MeterRepresentationTest extends Object
GaugeRepresentation.| Modifier and Type | Field and Description |
|---|---|
private static String |
FOLDER |
private static String |
JSON_INVALID_NO_BASE_UNIT |
private static String |
JSON_INVALID_NO_DESCRIPTION |
private static String |
JSON_INVALID_NO_NAME |
private static String |
JSON_INVALID_NO_NAME_VALUE |
private static String |
JSON_VALID |
private static String |
JSON_VALID_NO_BASE_UNIT |
private static String |
JSON_VALID_NO_DESCRIPTION |
| Constructor and Description |
|---|
MeterRepresentationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testInitNullJson()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInitOkNoTags()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInitOkNoTagsNoBaseUnitValue()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInitOkNoTagsNoDescriptionValue()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInitOkWithTags()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInvalidJsonNoBaseUnit()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInvalidJsonNoDescription()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInvalidJsonNoName()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInvalidJsonNoNameValue()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testNameInitEmptyName()
Tests
GaugeRepresentation.createNewGauge(String). |
void |
testNameInitNullName()
Tests
GaugeRepresentation.createNewGauge(String). |
void |
testNameInitOk()
Tests
GaugeRepresentation.createNewGauge(String). |
void |
testTagNoKey()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testTagNoValue()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testTagRandomString()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
private static final String FOLDER
private static final String JSON_VALID
private static final String JSON_VALID_NO_BASE_UNIT
private static final String JSON_VALID_NO_DESCRIPTION
private static final String JSON_INVALID_NO_NAME
private static final String JSON_INVALID_NO_NAME_VALUE
private static final String JSON_INVALID_NO_BASE_UNIT
private static final String JSON_INVALID_NO_DESCRIPTION
public void testInitOkNoTags()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInitOkWithTags()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInitOkNoTagsNoBaseUnitValue()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInitOkNoTagsNoDescriptionValue()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInitNullJson()
GaugeRepresentation.parseGauge(JsonObject, String...).public void testTagNoKey()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testTagNoValue()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testTagRandomString()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInvalidJsonNoName()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInvalidJsonNoNameValue()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInvalidJsonNoBaseUnit()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInvalidJsonNoDescription()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testNameInitOk()
GaugeRepresentation.createNewGauge(String).public void testNameInitNullName()
GaugeRepresentation.createNewGauge(String).public void testNameInitEmptyName()
GaugeRepresentation.createNewGauge(String).Copyright © 2022. All rights reserved.