Scala Monitoring and Control System API
com.lafros.maven.scalatest

trait GuiSupport

[source: com/lafros/maven/scalatest/GuiSupport.scala]

trait GuiSupport
extends AnyRef
support for testing GUIs.
Author
Rob Dickens
Method Summary
def displayGui (c : scala.swing.Component, menuBar : scala.swing.MenuBar) : Unit
also accepts optional menu bar.
def displayGui (c : scala.swing.Component) : Unit
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def displayGui(c : scala.swing.Component) : Unit

displays c in a dialogue box complete with 'Pass' and 'Fail' buttons, and waits for the dialog box to be dismissed.

The title of the dialog box will be c.getClass.getName +" test". May be called from any thread.

Throws
RuntimeException - if 'Fail' is clicked on, or if the dialog box is closed

def displayGui(c : scala.swing.Component, menuBar : scala.swing.MenuBar) : Unit
also accepts optional menu bar.


Copyright 2009 Latterfrosken Software Development Limited