Class SplitterFactoryTestUpdater


  • public class SplitterFactoryTestUpdater
    extends Object
    This class's main method can be used to update both the target files of SplitterFactoryTest and the code of the SplitterFactoryTest itself.

    To use this program to update SplitterFactoryTest and the target files, run

        \rm -f targets/*.java.goal SplitterFactoryTest.java
    Then simply run the main method without any arguments in the daikon/java directory, and then re-compile the SplitterFactoryTest.

    To add additional tests to this test program, place the .spinfo and decls files into the "targets" directory then add a call to generateSplitters with the new files. generateSplitters is overloaded, and takes either one .spinfo file and one decls file, or else a list of each.

    • Method Detail

      • main

        public static void main​(String[] args)
        If one has changed the test cases used below, for best results run rm *.java.goal while in the targets directory before running this method. Creates new splitter java files, moves the new files into target directory, rewrites the code of SplitterFactoryTest to use the new files. One should recompile SplitterFactoryTest after running this method.
        Parameters:
        args - are ignored
      • appendSetUpTest

        public static void appendSetUpTest​(PrintStream ps)
        Appends the code to write the static block of code to code. This code is used by the SplitterFactoryTest to set up the needed files to run the tests on.