public class CounterRepresentationTest extends Object
CounterRepresentation.| 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 |
|---|
CounterRepresentationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testGetUpdater()
Tests
CounterRepresentation.getUpdater(). |
void |
testIncrementByNegativeOne()
Tests
CounterRepresentation.parseCounter(JsonObject, String...). |
void |
testIncrementByOne()
Tests
CounterRepresentation.parseCounter(JsonObject, String...). |
void |
testIncrementByZero()
Tests
CounterRepresentation.parseCounter(JsonObject, String...). |
void |
testInitBadTwoMeasurements()
Tests
CounterRepresentation.parseCounter(JsonObject, String...). |
void |
testInitBadWrongStatistic()
Tests
CounterRepresentation.parseCounter(JsonObject, String...). |
void |
testInitOkNoTags()
Tests
CounterRepresentation.parseCounter(JsonObject, String...). |
void |
testInitOkWithTags()
Tests
CounterRepresentation.parseCounter(JsonObject, String...). |
void |
testMeasure()
Tests
CounterRepresentation.measure(). |
void |
testNameInitOk()
Tests
CounterRepresentation.createNewCounter(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
CounterRepresentation.parseCounter(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInitOkWithTags()
throws IOException
CounterRepresentation.parseCounter(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInitBadTwoMeasurements()
throws IOException
CounterRepresentation.parseCounter(JsonObject, String...).IOException - shall not occur when test is passedpublic void testInitBadWrongStatistic()
throws IOException
CounterRepresentation.parseCounter(JsonObject, String...).IOException - shall not occur when test is passedpublic void testIncrementByOne()
throws IOException
CounterRepresentation.parseCounter(JsonObject, String...).IOException - shall not occur when test is passedpublic void testIncrementByZero()
throws IOException
CounterRepresentation.parseCounter(JsonObject, String...).IOException - shall not occur when test is passedpublic void testIncrementByNegativeOne()
throws IOException
CounterRepresentation.parseCounter(JsonObject, String...).IOException - shall not occur when test is passedpublic void testGetUpdater()
throws IOException
CounterRepresentation.getUpdater().IOException - shall not occur when test is passedpublic void testMeasure()
throws IOException
CounterRepresentation.measure().IOException - shall not occur when test is passedpublic void testNameInitOk()
CounterRepresentation.createNewCounter(String).Copyright © 2022. All rights reserved.