|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsystem.framework.report.ListenerstManager
Manage the listeners in the framework: TestListener FixtureListener TestReporter
Method Summary | |
void |
aboutToChangeTo(Fixture fixture)
Will be called before the execution of the fixture. |
void |
addError(Test test,
Throwable t)
|
void |
addFailure(Test test,
AssertionFailedError t)
|
void |
addListener(Object listener)
|
void |
endFixturring()
Is called after the fixture navigation ends. |
void |
endTest(Test test)
|
void |
fixtureChanged(Fixture fixture)
Will be called after the execution of the fixture. |
ArrayList |
getAllReporters()
|
static ListenerstManager |
getInstance()
|
void |
removeListener(Object listener)
|
void |
report(String title)
Post a test report |
void |
report(String title,
boolean status)
Post a test report |
void |
report(String title,
String message,
boolean status)
Post a test report |
void |
report(String title,
String message,
boolean status,
boolean bold)
Post a test report |
void |
report(String title,
Throwable t)
Post a test failer report. |
void |
startFixturring()
Is called before the fixture navigation is started. |
void |
startTest(Test test)
|
void |
step(String stepDiscription)
Post a step report |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void addListener(Object listener)
public void removeListener(Object listener)
public static ListenerstManager getInstance()
public void report(String title, String message, boolean status)
Reporter
report
in interface Reporter
title
- Report title.message
- Report message.status
- report status.public void report(String title, String message, boolean status, boolean bold)
Reporter
report
in interface Reporter
title
- Report title.message
- Report message.status
- report status.bold
- bold report.public void report(String title, boolean status)
Reporter
report
in interface Reporter
title
- Report title.status
- report status.public void report(String title)
Reporter
report
in interface Reporter
title
- Report title.public void step(String stepDiscription)
Reporter
step
in interface Reporter
stepDiscription
- Step discription.public void report(String title, Throwable t)
Reporter
report
in interface Reporter
title
- Test title.t
- The exception that cause the report.public void addError(Test test, Throwable t)
addError
in interface TestListener
public void addFailure(Test test, AssertionFailedError t)
addFailure
in interface TestListener
public void endTest(Test test)
endTest
in interface TestListener
public void startTest(Test test)
startTest
in interface TestListener
public void aboutToChangeTo(Fixture fixture)
FixtureListener
aboutToChangeTo
in interface FixtureListener
fixture
- The fixture that is going to be executed.public void fixtureChanged(Fixture fixture)
FixtureListener
fixtureChanged
in interface FixtureListener
fixture
- The fixture that was executed.public void startFixturring()
FixtureListener
startFixturring
in interface FixtureListener
public void endFixturring()
FixtureListener
endFixturring
in interface FixtureListener
public ArrayList getAllReporters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |