java.lang.Object
test.de.iip_ecosphere.platform.services.environment.metricsProvider.meterRepresentations.CounterRepresentationTest

public class CounterRepresentationTest extends Object
Tests CounterRepresentation.
Author:
Miguel Gomez
  • Field Details

  • Constructor Details

    • CounterRepresentationTest

      public CounterRepresentationTest()
  • Method Details

    • testInitOkNoTags

      public void testInitOkNoTags() throws IOException
      Tests CounterRepresentation.parseCounter(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitOkWithTags

      public void testInitOkWithTags() throws IOException
      Tests CounterRepresentation.parseCounter(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadTwoMeasurements

      public void testInitBadTwoMeasurements() throws IOException
      Tests CounterRepresentation.parseCounter(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadWrongStatistic

      public void testInitBadWrongStatistic() throws IOException
      Tests CounterRepresentation.parseCounter(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testIncrementByOne

      public void testIncrementByOne() throws IOException
      Tests CounterRepresentation.parseCounter(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testIncrementByZero

      public void testIncrementByZero() throws IOException
      Tests CounterRepresentation.parseCounter(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testIncrementByNegativeOne

      public void testIncrementByNegativeOne() throws IOException
      Tests CounterRepresentation.parseCounter(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testGetUpdater

      public void testGetUpdater() throws IOException
      Tests CounterRepresentation.getUpdater().
      Throws:
      IOException - shall not occur when test is passed
    • testMeasure

      public void testMeasure() throws IOException
      Tests CounterRepresentation.measure().
      Throws:
      IOException - shall not occur when test is passed
    • testNameInitOk

      public void testNameInitOk()
      Tests CounterRepresentation.createNewCounter(String).