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

public class MeterRepresentationTest extends Object
Tests meter representation via GaugeRepresentation.
Author:
Miguel Gomez
  • Field Details

  • Constructor Details

    • MeterRepresentationTest

      public MeterRepresentationTest()
  • Method Details

    • testInitOkNoTags

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

      public void testInitOkWithTags() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitOkNoTagsNoBaseUnitValue

      public void testInitOkNoTagsNoBaseUnitValue() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitOkNoTagsNoDescriptionValue

      public void testInitOkNoTagsNoDescriptionValue() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitNullJson

      public void testInitNullJson()
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
    • testTagNoKey

      public void testTagNoKey() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testTagNoValue

      public void testTagNoValue() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testTagRandomString

      public void testTagRandomString() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInvalidJsonNoName

      public void testInvalidJsonNoName() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInvalidJsonNoNameValue

      public void testInvalidJsonNoNameValue() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInvalidJsonNoBaseUnit

      public void testInvalidJsonNoBaseUnit() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInvalidJsonNoDescription

      public void testInvalidJsonNoDescription() throws IOException
      Tests GaugeRepresentation.parseGauge(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testNameInitOk

      public void testNameInitOk()
      Tests GaugeRepresentation.createNewGauge(String).
    • testNameInitNullName

      public void testNameInitNullName()
      Tests GaugeRepresentation.createNewGauge(String).
    • testNameInitEmptyName

      public void testNameInitEmptyName()
      Tests GaugeRepresentation.createNewGauge(String).