Package fit
Class Fixture
- java.lang.Object
-
- fit.Fixture
-
- Direct Known Subclasses:
ActionFixture
,ActionFixtureTestFixture
,ClassNotFoundThrownInConstructor
,ClasspathPrintingFixture
,ColumnFixture
,Comment
,CountFixture
,CrashFixture
,DelayedCountFixture
,EchoFixture
,ErrorFixture
,ErrorWritingFixture
,FailFixture
,FixtureDecorator
,IgnoreFixture
,ImportFixture
,NoDefaultConstructorFixture
,OutputWritingFixture
,PageBuilder
,PassFixture
,PrimitiveFixture
,SemaphoreFixture
,SetUp
,SummaryFixture
,TableFixture
,TearDown
,TestFixture
public class Fixture extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Fixture.RunTime
-
Constructor Summary
Constructors Constructor Description Fixture()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
callParseMethod(java.lang.Class<?> type, java.lang.String s)
static java.lang.String
camel(java.lang.String name)
void
check(Parse cell, TypeAdapter a)
static void
ClearSymbols()
java.lang.String
counts()
void
doCell(Parse cell, int columnNumber)
void
doCells(Parse cells)
void
doRow(Parse row)
void
doRows(Parse rows)
void
doTable(Parse table)
void
doTables(Parse tables)
static java.lang.String
escape(java.lang.String string)
static java.lang.String
escape(java.lang.String string, char from, java.lang.String to)
void
exception(Parse cell, java.lang.Throwable exception)
java.lang.String[]
getArgs()
void
getArgsForTable(Parse table)
protected Fixture
getLinkedFixtureWithArgs(Parse tables)
static java.lang.Object
getSymbol(java.lang.String name)
protected java.lang.Class<?>
getTargetClass()
static java.lang.String
gray(java.lang.String string)
void
handleBlankCell(Parse cell, TypeAdapter a)
static boolean
hasParseMethod(java.lang.Class<?> type)
static boolean
hasSymbol(java.lang.String name)
void
ignore(Parse cell)
protected void
interpretTables(Parse tables)
boolean
isFriendlyException(java.lang.Throwable exception)
static java.lang.String
label(java.lang.String string)
static Fixture
loadFixture(java.lang.String fixtureName)
java.lang.Object
parse(java.lang.String s, java.lang.Class<?> type)
void
right(Parse cell)
static void
setForcedAbort(boolean state)
static void
setSymbol(java.lang.String name, java.lang.Object value)
void
wrong(Parse cell)
void
wrong(Parse cell, java.lang.String actual)
-
-
-
Field Detail
-
summary
public java.util.Map<java.lang.String,java.lang.Object> summary
-
counts
public Counts counts
-
listener
public FixtureListener listener
-
args
protected java.lang.String[] args
-
-
Method Detail
-
setForcedAbort
public static void setForcedAbort(boolean state)
-
getTargetClass
protected java.lang.Class<?> getTargetClass()
-
doTables
public void doTables(Parse tables)
-
ClearSymbols
public static void ClearSymbols()
-
interpretTables
protected void interpretTables(Parse tables)
-
getLinkedFixtureWithArgs
protected Fixture getLinkedFixtureWithArgs(Parse tables) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
loadFixture
public static Fixture loadFixture(java.lang.String fixtureName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getArgsForTable
public void getArgsForTable(Parse table)
-
doTable
public void doTable(Parse table)
-
doRows
public void doRows(Parse rows)
-
doRow
public void doRow(Parse row)
-
doCells
public void doCells(Parse cells)
-
doCell
public void doCell(Parse cell, int columnNumber)
-
right
public void right(Parse cell)
-
wrong
public void wrong(Parse cell)
-
wrong
public void wrong(Parse cell, java.lang.String actual)
-
ignore
public void ignore(Parse cell)
-
exception
public void exception(Parse cell, java.lang.Throwable exception)
-
isFriendlyException
public boolean isFriendlyException(java.lang.Throwable exception)
-
counts
public java.lang.String counts()
-
label
public static java.lang.String label(java.lang.String string)
-
gray
public static java.lang.String gray(java.lang.String string)
-
escape
public static java.lang.String escape(java.lang.String string)
-
escape
public static java.lang.String escape(java.lang.String string, char from, java.lang.String to)
-
camel
public static java.lang.String camel(java.lang.String name)
-
parse
public java.lang.Object parse(java.lang.String s, java.lang.Class<?> type) throws java.lang.Exception
- Throws:
java.lang.Exception
-
check
public void check(Parse cell, TypeAdapter a)
-
handleBlankCell
public void handleBlankCell(Parse cell, TypeAdapter a)
-
getArgs
public java.lang.String[] getArgs()
-
setSymbol
public static void setSymbol(java.lang.String name, java.lang.Object value)
-
getSymbol
public static java.lang.Object getSymbol(java.lang.String name)
-
hasSymbol
public static boolean hasSymbol(java.lang.String name)
-
hasParseMethod
public static boolean hasParseMethod(java.lang.Class<?> type)
-
callParseMethod
public static java.lang.Object callParseMethod(java.lang.Class<?> type, java.lang.String s) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-