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

public class TimerRepresentationTest extends Object
Tests TimerRepresentation.
Author:
Miguel Gomez
  • Field Details

  • Constructor Details

    • TimerRepresentationTest

      public TimerRepresentationTest()
  • Method Details

    • testInitOkNoTags

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

      public void testInitOkWithTags() throws IOException
      Tests TimerRepresentation.parseTimer(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadInvalidBaseUnit

      public void testInitBadInvalidBaseUnit() throws IOException
      Tests TimerRepresentation.parseTimer(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadTwoMeasurements

      public void testInitBadTwoMeasurements() throws IOException
      Tests TimerRepresentation.parseTimer(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadFourMeasurements

      public void testInitBadFourMeasurements() throws IOException
      Tests TimerRepresentation.parseTimer(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadWrongStatistic

      public void testInitBadWrongStatistic() throws IOException
      Tests TimerRepresentation.parseTimer(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadTwoCount

      public void testInitBadTwoCount() throws IOException
      Tests TimerRepresentation.parseTimer(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadTwoTotal

      public void testInitBadTwoTotal() throws IOException
      Tests TimerRepresentation.parseTimer(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testInitBadTwoMax

      public void testInitBadTwoMax() throws IOException
      Tests TimerRepresentation.parseTimer(JsonObject, String...).
      Throws:
      IOException - shall not occur when test is passed
    • testRecordLong

      public void testRecordLong() throws IOException
      Tests TimerRepresentation.count(), TimerRepresentation.totalTime(TimeUnit) and TimerRepresentation.max(TimeUnit).
      Throws:
      IOException - shall not occur when test is passed
    • testRecordSupplier

      public void testRecordSupplier() throws IOException
      Tests TimerRepresentation.record(java.util.function.Supplier).
      Throws:
      IOException - shall not occur when test is passed
    • testRecordCallable

      public void testRecordCallable() throws Exception
      Tests TimerRepresentation.recordCallable(java.util.concurrent.Callable).
      Throws:
      Exception - shall not occur when test is passed
    • testRecordRunnable

      public void testRecordRunnable() throws IOException
      Tests TimerRepresentation.record(Runnable).
      Throws:
      IOException - shall not occur when test is passed
    • testTotalTimeConversion

      public void testTotalTimeConversion() throws IOException
      Tests TimerRepresentation.totalTime(TimeUnit).
      Throws:
      IOException - shall not occur when test is passed
    • testMaxTimeConversion

      public void testMaxTimeConversion() throws IOException
      Tests TimerRepresentation.max(TimeUnit).
      Throws:
      IOException - shall not occur when test is passed
    • testGetUpdater

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

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

      public void testNameInitOk()
      Tests TimerRepresentation.createNewTimer(String).