|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase edu.sdsc.inca.agent.access.AccessMethodTestCase
public abstract class AccessMethodTestCase
Base class for implementing access method tests (i.e., run the same tests consistently on each method). To use, 1) implement hasRequirements which can be used to check for specific prerequisites before a test is run (default is to always run test) 2) set checkResult to specify whether results should be checked or not (e.g., we don't for Manual). Default is to always check.
Nested Class Summary | |
---|---|
class |
AccessMethodTestCase.TmpPasswordFilter
|
Field Summary | |
---|---|
protected boolean |
checkResult
|
protected static org.apache.log4j.Logger |
logger
|
protected AccessMethod[] |
procs
|
Constructor Summary | |
---|---|
AccessMethodTestCase()
|
Method Summary | |
---|---|
boolean |
hasRequirements()
Check for any requirements for running a test using the specific access method. |
void |
testHome()
Test that we can get the remote home directory |
void |
testRun()
Run thru a set of execution tests using the specified access method |
void |
testRunInterrupt()
Need to make sure access methods are throwing InterruptedExceptions when they get interrupted |
void |
testStartStop()
Run thru a set of start/stop process tests using the specified access method |
void |
testTransfer()
Run thru a set of transfer tests using the specified access method |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, 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 |
---|
protected static org.apache.log4j.Logger logger
protected AccessMethod[] procs
protected boolean checkResult
Constructor Detail |
---|
public AccessMethodTestCase()
Method Detail |
---|
public boolean hasRequirements()
public void testTransfer() throws java.lang.Exception
java.lang.Exception
- if problem executing testpublic void testRun() throws java.lang.Exception
java.lang.Exception
- if problem executing testpublic void testRunInterrupt() throws java.lang.Exception
java.lang.Exception
- if problem executing testpublic void testHome() throws java.lang.Exception
java.lang.Exception
- if problem executing testpublic void testStartStop() throws java.lang.Exception
java.lang.Exception
- if problem executing test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |