Class TestScenarioAnnotationSerializer

java.lang.Object
de.qytera.qtaf.core.gson.serializer.TestScenarioAnnotationSerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<org.testng.annotations.Test>, IQtafJsonSerializer

public class TestScenarioAnnotationSerializer extends Object implements IQtafJsonSerializer, com.google.gson.JsonSerializer<org.testng.annotations.Test>
Converts TestCase annotation to JSON.
  • Constructor Details

    • TestScenarioAnnotationSerializer

      public TestScenarioAnnotationSerializer()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(org.testng.annotations.Test test, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<org.testng.annotations.Test>
    • getSerializedObjectClass

      public Class<org.testng.annotations.Test> getSerializedObjectClass()
      Description copied from interface: IQtafJsonSerializer
      Returns the class of the serialized object.
      Specified by:
      getSerializedObjectClass in interface IQtafJsonSerializer
      Returns:
      the serialized class