Package org.mongounit

Class DatasetGenerator

java.lang.Object
org.mongounit.DatasetGenerator

public class DatasetGenerator extends Object
DatasetGenerator class is a standalone runnable program that can generate JSON-based starter dataset files which can later be used to seed and verify database tests.
  • Constructor Details

    • DatasetGenerator

      public DatasetGenerator()
  • Method Details

    • main

      public static void main(String[] args)
      Main method for the DatasetGenerator.
      Parameters:
      args - Arguments that are passed into the standalone program.
    • extractListArgumentValues

      public static List<String> extractListArgumentValues(String commaSeparateArgumentValue)
      Parameters:
      commaSeparateArgumentValue - String that contains comma separated argument values without a space between them.
      Returns:
      List of argument values, where each item in the list is an argument value from the 'commaSeparateArgumentValue'