Version: 1.1.1

ca.ucalgary.seahawk.gui.test
Class SeahawkTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by junit.extensions.jfcunit.JFCTestCase
              extended by ca.ucalgary.seahawk.gui.test.SeahawkTestCase
All Implemented Interfaces:
junit.framework.Test

public class SeahawkTestCase
extends junit.extensions.jfcunit.JFCTestCase

Tests all of the major functionality of Seahawk, the standalone MOBY browser that can be embedded in other applications too. If you add classes to Seahawk, you MUST test them here, otherwise they will not end up in the Seahawk deployment JAR.


Constructor Summary
SeahawkTestCase(String name)
           
 
Method Summary
 void fillInSecondariesAndExecute()
           
 Vector<JMenuItem> findMenuItem(JMenu menu, String pattern)
           
 boolean findMenuItem(JMenu menu, String pattern, Vector<JMenuItem> result)
           
 String findService(String sequenceData, String targetMenuText, String targetServiceLabelText)
           
static void main(String[] args)
          Runs the test suite when the class is invoked on the command line.
 void showMenuItem(JMenu menu, Vector<JMenuItem> path, Robot robot)
           
static junit.framework.Test suite()
           
 void testClipboardTab()
           
 void testCloseOtherTabs()
           
 void testCloseTab()
           
 void testDaggoo()
           
 void testDragnDrop()
          Checks that SeahawkTransferable works
 void testExcelFileConversion()
           
 void testExternalBrowser()
           
 void testExternalLinks()
           
 void testHelpButton()
           
 void testHelpTab()
           
 void testHighlightOptions()
           
 void testMain()
           
 void testNavigationButtons()
           
 void testOpenButton()
           
 void testPrint()
           
 void testRunAsynchronousService()
           
 void testRunServiceSecondariesAndWorkflow()
           
 void testSave()
           
 void testTeXFileConversion()
           
 void testUserPreferences()
           
 void testWordFileConversion()
           
 void testWSDL()
           
 
Methods inherited from class junit.extensions.jfcunit.JFCTestCase
awtSleep, awtSleep, flushAWT, getAssertExit, getHelper, isAWTRunning, pauseAWT, resetSleepTime, resumeAWT, runBare, setAssertExit, setHelper, setSleepTime, sleep
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SeahawkTestCase

public SeahawkTestCase(String name)
Parameters:
name - Test case name.
Method Detail

testHelpTab

public void testHelpTab()

testHelpButton

public void testHelpButton()

testClipboardTab

public void testClipboardTab()

testSave

public void testSave()
              throws Exception
Throws:
Exception

testPrint

public void testPrint()

testNavigationButtons

public void testNavigationButtons()
                           throws Exception
Throws:
Exception

testOpenButton

public void testOpenButton()
                    throws Exception
Throws:
Exception

testWSDL

public void testWSDL()
              throws Exception
Throws:
Exception

testDragnDrop

public void testDragnDrop()
                   throws Exception
Checks that SeahawkTransferable works

Throws:
Exception

testExternalLinks

public void testExternalLinks()

testCloseTab

public void testCloseTab()

testCloseOtherTabs

public void testCloseOtherTabs()

findService

public String findService(String sequenceData,
                          String targetMenuText,
                          String targetServiceLabelText)
                   throws Exception
Throws:
Exception

testRunAsynchronousService

public void testRunAsynchronousService()
                                throws Exception
Throws:
Exception

testRunServiceSecondariesAndWorkflow

public void testRunServiceSecondariesAndWorkflow()
                                          throws Exception
Throws:
Exception

fillInSecondariesAndExecute

public void fillInSecondariesAndExecute()
                                 throws Exception
Throws:
Exception

testHighlightOptions

public void testHighlightOptions()
                          throws Exception
Throws:
Exception

testExternalBrowser

public void testExternalBrowser()
                         throws Exception
Throws:
Exception

testMain

public void testMain()
              throws Exception
Throws:
Exception

testUserPreferences

public void testUserPreferences()
                         throws Exception
Throws:
Exception

testDaggoo

public void testDaggoo()
                throws Exception
Throws:
Exception

testWordFileConversion

public void testWordFileConversion()
                            throws Exception
Throws:
Exception

testExcelFileConversion

public void testExcelFileConversion()
                             throws Exception
Throws:
Exception

testTeXFileConversion

public void testTeXFileConversion()
                           throws Exception
Throws:
Exception

suite

public static junit.framework.Test suite()
Returns:
a test suite for all the test methods of this test case.

main

public static void main(String[] args)
                 throws Exception
Runs the test suite when the class is invoked on the command line. The name of the service can be defined through a Java property, moby.testService

Throws:
Exception

showMenuItem

public void showMenuItem(JMenu menu,
                         Vector<JMenuItem> path,
                         Robot robot)
                  throws Exception
Throws:
Exception

findMenuItem

public Vector<JMenuItem> findMenuItem(JMenu menu,
                                      String pattern)

findMenuItem

public boolean findMenuItem(JMenu menu,
                            String pattern,
                            Vector<JMenuItem> result)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010