|
2010 FRC Java API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.first.testing.TestClass.Test
public abstract class TestClass.Test
This class should be extended within subclasses of each TestClass to add a test. In the constructor for the TestClass you could put : new Test() { public String getName() { return "Sample"; } public void run() { //your test here assertFail("I don't work"); } };
Constructor Summary | |
---|---|
TestClass.Test(String name)
Create a new Test and add it to the master classes table of tests |
Method Summary | |
---|---|
String |
getName()
Get the name of this test, should be unique within this test class. |
abstract void |
run()
The code to test. |
void |
setup()
Setup code to run before this test is run |
void |
teardown()
Teardown code to run after the test is run |
String |
toString()
Return a string representing this Test. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestClass.Test(String name)
name
- The name for this test, This should be unique for this TestClass.Method Detail |
---|
public String getName()
public abstract void run()
public void setup()
public void teardown()
public String toString()
toString
in class Object
|
2010 FRC Java API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |