- All Implemented Interfaces:
junit.framework.Test
- Enclosing class:
- JUnitTestRunner
public static class JUnitTestRunner.TestWrapper
extends java.lang.Object
implements junit.framework.Test
Test wrapper.
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type |
Method |
Description |
int |
countTestCases() |
Get test cases count.
|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getName() |
Get test name.
|
int |
hashCode() |
|
void |
run(junit.framework.TestResult result) |
Run test.
|
java.lang.String |
toString() |
|
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Method Detail
getName
public java.lang.String getName()
Get test name.
- Returns:
- test name
countTestCases
public int countTestCases()
Get test cases count.
- Specified by:
-
countTestCases
in interface junit.framework.Test
- Returns:
- test cases count
run
public void run(junit.framework.TestResult result)
Run test.
- Specified by:
run
in interface junit.framework.Test
- Parameters:
result
- test result
- See Also:
Test.run(junit.framework.TestResult)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object