jigcell.compare.tests
Class SystemTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jigcell.compare.tests.SystemTests
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, junit.framework.Test

public class SystemTests
extends junit.framework.TestCase
implements java.beans.PropertyChangeListener

A collection of tests to exercise the standard cellcycle components.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Field Summary
protected  java.lang.String currentProperty
          Current property change to monitor for
protected  boolean propertyHit
          Whether the currently monitored property change has been detected
 
Constructor Summary
SystemTests(java.lang.String name)
          Creates a new system test.
 
Method Summary
static void main(java.lang.String[] args)
          Starts a new test suite run.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
protected  void setCurrentProperty(java.lang.String currentProperty)
          Sets the currently monitored property.
static junit.framework.Test suite()
          All of the tests in this test.
 void testFindCompare()
          Test for finding a Comparator instance.
 void testFindTab()
          Test for finding a tab instance by class.
 void testFindTab2()
          Test for finding a tab instance by name.
 void testLoad()
          Test for loading experimental data.
 void testRunFrogEgg()
          Test for executing the frog egg model.
protected  void waitForLoad(Compare compare, java.lang.String property, IDataEditorTab tab, IReadableDataSource source)
          Waits for a data source to load in a tab.
protected  void waitForProperty()
          Waits until the current property detects a hit.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyHit

protected volatile boolean propertyHit
Whether the currently monitored property change has been detected


currentProperty

protected java.lang.String currentProperty
Current property change to monitor for

Constructor Detail

SystemTests

public SystemTests(java.lang.String name)
Creates a new system test.

Parameters:
name - Test name
Method Detail

main

public static void main(java.lang.String[] args)
Starts a new test suite run.

Parameters:
args - Program arguments

suite

public static junit.framework.Test suite()
All of the tests in this test.


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

testFindCompare

public void testFindCompare()
Test for finding a Comparator instance.


testFindTab

public void testFindTab()
Test for finding a tab instance by class.


testFindTab2

public void testFindTab2()
Test for finding a tab instance by name.


testLoad

public void testLoad()
Test for loading experimental data.


testRunFrogEgg

public void testRunFrogEgg()
Test for executing the frog egg model.


setCurrentProperty

protected void setCurrentProperty(java.lang.String currentProperty)
Sets the currently monitored property.

Parameters:
currentProperty - Property to monitor

waitForLoad

protected void waitForLoad(Compare compare,
                           java.lang.String property,
                           IDataEditorTab tab,
                           IReadableDataSource source)
Waits for a data source to load in a tab.

Parameters:
compare - Comparator
property - Property fired on load
tab - Tab
source - Data source

waitForProperty

protected void waitForProperty()
Waits until the current property detects a hit.