|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
junit.framework.SystemTestCase
SystemTestCase is the best starting point to learn the services avilable in JSystem. Every test that uses the JSystem framework should extend SystemTestCase. SystemTestCase extends JUnit TestCase, and can be executed from any JUnit runner. The following services available be using this class: Fixture management - enable you to define a tree of fixtures, bind tests to the fixtures and automaticly execute and navigate the fixture tree. Reporting - enable extendable detail reporting service. This service enable to log positive events from your tests and interfaces. A hierarchal HTML view of the result is available. You can use it to track complex functional/system tests. You can extend it by writing you own reporting layer. SUT (System Under Test) independent - a layer that enable a test to run on deferent setups. System object - Enable you to manage the interfaces to your system in one easy to use object.
Field Summary | |
static Reporter |
report
Use it to log positive events from your test. |
static Sut |
sut
Use it to get information about the setup/system you are testing. |
SystemObjectManager |
system
Use it to access the interfaces of your tested system. |
Constructor Summary | |
SystemTestCase()
No-arg constructor to enable serialization. |
|
SystemTestCase(String name)
Constructs a test case with the given name. |
Method Summary | |
Class |
getFixture()
Get the fixture this test is bind to. |
Class |
getTearDownFixture()
Get the fixture to fall to if the test fail. |
boolean |
isPass()
|
void |
run(TestResult result)
Runs the test case and collects the results in TestResult. |
void |
runBare()
Runs the bare test sequence. |
void |
setFixture(Class fixture)
Set the fixture to be used when executing this test. |
void |
setTearDownFixture(Class tearDownFixture)
Set the fixture to fall to in case of test fail. |
void |
sleep(long time)
Go to sleep |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static Reporter report
public static Sut sut
public SystemObjectManager system
Constructor Detail |
public SystemTestCase()
public SystemTestCase(String name)
Method Detail |
public void run(TestResult result)
public void runBare() throws Throwable
Throwable
- if any exception is thrownpublic Class getFixture()
public void setFixture(Class fixture)
fixture
- The fixture to bind to.public Class getTearDownFixture()
public void setTearDownFixture(Class tearDownFixture)
tearDownFixture
- The fail to fixture.public boolean isPass()
public void sleep(long time)
time
- sleep time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |