Class HTMLAboutJUnitTest


  • public class HTMLAboutJUnitTest
    extends java.lang.Object
    Test out HTMLAbout by starting vergil with various URLs.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Christopher Brooks
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void _openModel​(java.lang.String modelFileName)
      Test HTMLAbout by opening a URL that starts with "about:".
      protected void _sleep()
      Sleep the current thread, which is usually not the Swing Event Dispatch Thread.
      void aboutAllCopyrights()
      Invoke about:allcopyrights, which pops up a window that lists the copyrights.
      void aboutConfiguration()
      Invoke about:configuration, which expands the actor tree on the left.
      void aboutCopyrights()
      Invoke about:copyrights, which pops up a window that lists the copyrights.
      static void main​(java.lang.String[] args)
      Test the HTMLAbout
      • Methods inherited from class java.lang.Object

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

      • HTMLAboutJUnitTest

        public HTMLAboutJUnitTest()
    • Method Detail

      • aboutAllCopyrights

        public void aboutAllCopyrights()
                                throws java.lang.Exception
        Invoke about:allcopyrights, which pops up a window that lists the copyrights.
        Throws:
        java.lang.Exception - If there is a problem reading or laying out a model.
      • aboutConfiguration

        public void aboutConfiguration()
                                throws java.lang.Exception
        Invoke about:configuration, which expands the actor tree on the left.
        Throws:
        java.lang.Exception - If there is a problem reading or laying out a model.
      • aboutCopyrights

        public void aboutCopyrights()
                             throws java.lang.Exception
        Invoke about:copyrights, which pops up a window that lists the copyrights.
        Throws:
        java.lang.Exception - If there is a problem reading or laying out a model.
      • main

        public static void main​(java.lang.String[] args)
        Test the HTMLAbout

        To run, use:

           $PTII/bin/ptinvoke ptolemy.actor.gui.test.junit.HTMLAboutJUnitTest
          
        We use ptinvoke so that the classpath is set to include all the packages used by Ptolemy II.
        Parameters:
        args - Ignored.
      • _openModel

        protected void _openModel​(java.lang.String modelFileName)
                           throws java.lang.Exception
        Test HTMLAbout by opening a URL that starts with "about:".

        This is the main entry point for HTMLAbout tests.

        The caller of this method need notbe in the Swing Event Thread.

        Parameters:
        modelFileName - The file name of the test model.
        Throws:
        java.lang.Exception - If the file name cannot be read or laid out.
      • _sleep

        protected void _sleep()
        Sleep the current thread, which is usually not the Swing Event Dispatch Thread.