Class GsonPreviousOutcomeConverter

java.lang.Object
net.thucydides.core.reports.json.gson.GsonPreviousOutcomeConverter

public class GsonPreviousOutcomeConverter
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    GsonPreviousOutcomeConverter​(EnvironmentVariables environmentVariables)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<PreviousTestOutcome> fromJson​(java.io.InputStream inputStream)  
    java.util.Optional<PreviousTestOutcome> fromJson​(java.io.Reader jsonReader)  
    protected com.google.gson.Gson getGson()  
    void toJson​(PreviousTestOutcome testOutcome, java.io.OutputStream outputStream)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GsonPreviousOutcomeConverter

      @Inject public GsonPreviousOutcomeConverter​(EnvironmentVariables environmentVariables)
  • Method Details

    • getGson

      protected com.google.gson.Gson getGson()
    • fromJson

      public java.util.Optional<PreviousTestOutcome> fromJson​(java.io.InputStream inputStream) throws java.io.IOException
      Throws:
      java.io.IOException
    • fromJson

      public java.util.Optional<PreviousTestOutcome> fromJson​(java.io.Reader jsonReader)
    • toJson

      public void toJson​(PreviousTestOutcome testOutcome, java.io.OutputStream outputStream) throws java.io.IOException
      Throws:
      java.io.IOException