public class GaugeRepresentationTest extends Object
GaugeRepresentation.| Modifier and Type | Field and Description |
|---|---|
private static String |
FOLDER |
private static String |
JSON_INVALID_TWO_MEASUREMENTS |
private static String |
JSON_INVALID_WRONG_STATISTIC |
private static String |
JSON_UPDATER |
private static String |
JSON_VALID |
| Constructor and Description |
|---|
GaugeRepresentationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testGetUpdaterGauge()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInitBadTwoMeasurements()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInitBadWrongStatistic()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInitOkNoTags()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testInitOkWithTags()
Tests
GaugeRepresentation.parseGauge(JsonObject, String...). |
void |
testMeasure()
Tests
GaugeRepresentation.measure(). |
void |
testNameInitOk()
Tests
GaugeRepresentation.createNewGauge(String). |
private static final String FOLDER
private static final String JSON_VALID
private static final String JSON_UPDATER
private static final String JSON_INVALID_TWO_MEASUREMENTS
private static final String JSON_INVALID_WRONG_STATISTIC
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 testInitBadTwoMeasurements()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInitBadWrongStatistic()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testGetUpdaterGauge()
throws IOException
GaugeRepresentation.parseGauge(JsonObject, String...).IOException - shall not occur when test is passedpublic void testMeasure()
throws IOException
GaugeRepresentation.measure().IOException - shall not occur when test is passedpublic void testNameInitOk()
GaugeRepresentation.createNewGauge(String).Copyright © 2022. All rights reserved.