Class loadFromConf_Test

  • All Implemented Interfaces:
    com.sun.javatest.Test

    public class loadFromConf_Test
    extends MailTest
    This class tests that resource files are loaded as expected.

    api2test: public Provider getProvider(String)

    how2test: Create a resource file and see if it's loaded.

    • Constructor Detail

      • loadFromConf_Test

        public loadFromConf_Test()
    • Method Detail

      • main

        public static void main​(java.lang.String[] argv)
      • run

        public com.sun.javatest.Status run​(java.lang.String[] argv,
                                           java.io.PrintWriter log,
                                           java.io.PrintWriter out)
        Description copied from class: MailTest
        Default run() method ; sets i/o streams.
        Specified by:
        run in interface com.sun.javatest.Test
        Overrides:
        run in class MailTest
        Parameters:
        argv - command line arguments
        log - the log stream
        out - the output stream
        Returns:
        null
      • initialize

        protected void initialize()
                           throws java.lang.Exception
        We don't expect to be able to write into java.home so create a fake java.home and point the System property to it.
        Throws:
        java.lang.Exception - if anything goes wrong