csheets.ext.test
Class TestExtension

java.lang.Object
  extended by csheets.ext.Extension
      extended by csheets.ext.test.TestExtension
All Implemented Interfaces:
Comparable<Extension>

public class TestExtension
extends Extension

The extension for tests.

Author:
Einar Pehrson

Field Summary
static String NAME
          The name of the extension
 
Constructor Summary
TestExtension()
          Creates a new test extension.
 
Method Summary
 TestableCell extend(Cell cell)
          Makes the given cell testable.
 TestableSpreadsheet extend(Spreadsheet spreadsheet)
          Makes the given spreadsheet testable.
 UIExtension getUIExtension(UIController uiController)
          Returns a user interface extension for testing.
 
Methods inherited from class csheets.ext.Extension
compareTo, getName, getPropertyKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
The name of the extension

See Also:
Constant Field Values
Constructor Detail

TestExtension

public TestExtension()
Creates a new test extension.

Method Detail

extend

public TestableSpreadsheet extend(Spreadsheet spreadsheet)
Makes the given spreadsheet testable.

Overrides:
extend in class Extension
Parameters:
spreadsheet - the spreadsheet to extend
Returns:
a testable spreadsheet

extend

public TestableCell extend(Cell cell)
Makes the given cell testable.

Overrides:
extend in class Extension
Parameters:
cell - the cell to extend
Returns:
a testable cell

getUIExtension

public UIExtension getUIExtension(UIController uiController)
Returns a user interface extension for testing.

Overrides:
getUIExtension in class Extension
Parameters:
uiController - the user interface controller
Returns:
a user interface extension for testing