Class Generate

java.lang.Object
caseine.mutants.Generate

public class Generate extends Object
A command to generate templates for mutation tests. It generates the TestSuite and all templates of mutants.
  • Constructor Details

    • Generate

      public Generate()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Parameters:
      args -
      Throws:
      Exception
    • publish

      public static void publish(String projectPath, String className, String testClassName, int numberOfMutants) throws IOException, ClassNotFoundException
      Generates the local templates.
      Parameters:
      projectPath - the project location
      className - the complete name of the class (example: "fr.uga.m1.Test")
      testClassName - , can be null if convention is followed with prefix "Test"
      numberOfMutants - number of mutants to generate
      Throws:
      IOException - if something wrong
      ClassNotFoundException - if something wrong