Class ToCompareProducer

java.lang.Object
caseine.publication.producers.Producer
caseine.publication.producers.ToCompareProducer

public class ToCompareProducer extends Producer
Pour générer des tests unitaires de comparaison entre le comportement d'une méthode annotée @ToCompare
Author:
Yvan Maillot <yvan.maillot@uha.fr>
  • Constructor Details

  • Method Details

    • getEquivalentTypeInCfIfExist

      public static Class<?> getEquivalentTypeInCfIfExist(Class<?> c)
    • getInputStreamForStdInFromString

      public static InputStream getInputStreamForStdInFromString(String strStdIn)
      Parameters:
      strStdIn - The name of a file containing the input or the input itself
      Returns:
      the InputStream which is the opened file named strStdIn or a ByteArrayInputStream of the string stdStdIn if the file named strStdIn does not exist