Package org.htmlunit

Class Version


  • public final class Version
    extends java.lang.Object
    Class to display version information about HtmlUnit. This is the class that will be executed if the JAR file is run.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Version()
      Prevent instantiation.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getCopyright()
      Returns the copyright notice.
      static java.lang.String getProductName()
      Returns "HtmlUnit".
      static java.lang.String getProductVersion()
      Returns the current implementation version.
      static void main​(java.lang.String[] args)
      The main entry point into this class.
      private static void runSanityCheck()
      Runs the sanity check.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Version

        private Version()
        Prevent instantiation.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        The main entry point into this class.
        Parameters:
        args - the arguments passed on the command line
        Throws:
        java.lang.Exception - if an error occurs
      • runSanityCheck

        private static void runSanityCheck()
                                    throws java.lang.Exception
        Runs the sanity check.
        Throws:
        java.lang.Exception - if anything goes wrong
      • getProductName

        public static java.lang.String getProductName()
        Returns "HtmlUnit".
        Returns:
        "HtmlUnit"
      • getProductVersion

        public static java.lang.String getProductVersion()
        Returns the current implementation version.
        Returns:
        the current implementation version
      • getCopyright

        public static java.lang.String getCopyright()
        Returns the copyright notice.
        Returns:
        the copyright notice