Class YamlParserFactory

java.lang.Object
com.github.mjeanroy.dbunit.yaml.YamlParserFactory

public final class YamlParserFactory extends Object
The goal of this factory is to create default instances of YamlParser.
  • Method Details

    • createDefault

      public static YamlParser createDefault()
      Create default parser. Implementation will be selected using classpath detection:
      • If Jackson2 is available on classpath, then it is selected.
      • If Gson is available on classpath, then it is selected.
      • If Jackson1 is available on classpath, then it is selected.
      • If none of these dependencies are available, an instance of UnsupportedOperationException is thrown.
      Returns:
      The created parser.