BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
Classes | Public Member Functions | Protected Attributes | List of all members
unit.UnitTestCase Class Referenceabstract
Inheritance diagram for unit.UnitTestCase:
Inheritance graph
[legend]
Collaboration diagram for unit.UnitTestCase:
Collaboration graph
[legend]

Public Member Functions

void assertGoodContext ()
 
void init () throws TimeoutException
 
void start (Stage stage) throws Exception
 
void stop () throws TimeoutException
 

Protected Attributes

final Mockery context = new UnitTestingMockery()
 

Detailed Description

Base class for all unit tests

Definition at line 16 of file UnitTestCase.java.

Member Function Documentation

void unit.UnitTestCase.assertGoodContext ( )

Check that any mockeries set up were correctly used

Definition at line 26 of file UnitTestCase.java.

26  {
27  this.context.assertIsSatisfied();
28  }
final Mockery context
void unit.UnitTestCase.start ( Stage  stage) throws Exception

Do not start the UI

Parameters
stagethe Stage to which a UI would normally be attached

Definition at line 50 of file UnitTestCase.java.

50  {
51  // This is deliberate. Don't start the test
52  }

Member Data Documentation

final Mockery unit.UnitTestCase.context = new UnitTestingMockery()
protected

Set up a context for performing mocks using JMock

Definition at line 20 of file UnitTestCase.java.


The documentation for this class was generated from the following file:
Git Repo