|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.test.Test
public class Test
small test program
Nested Class Summary | |
---|---|
private static interface |
Test.Command
small interface to a class that executes commands on a given port |
private static class |
Test.ParallelCommand
class that executes the given commands in parallel |
private static class |
Test.RepeatCommand
class that repeats a command a given number of times |
private static class |
Test.SequentialCommand
class that executes the given commands sequentially |
private static class |
Test.SingleCommand
class that executes a single command |
Field Summary | |
---|---|
private static java.util.regex.Pattern |
argPattern
pattern to split lines |
private java.io.BufferedReader |
batchReader
the buffered reader while parsing |
private java.lang.String[] |
parsedArgs
the last parsed arguments during parsing |
Constructor Summary | |
---|---|
Test()
|
Method Summary | |
---|---|
private static ContactData |
createContactData(java.lang.String... args)
create a contact data instance from the given arguments |
private static DomainData |
createDomainData(boolean withAuthInfo,
java.lang.String... args)
create a domain data instance from the given arguments |
private static DomainData |
createDomainDataExt(boolean withAuthInfo,
java.lang.String... args)
create a domain data instance from the given arguments |
private void |
doMain(java.lang.String[] args)
the main program |
private static void |
execute(Port port,
java.lang.String[] args,
int offset)
execute a command |
static void |
main(java.lang.String[] args)
main program |
private Test.Command |
parseBatchFile(java.io.BufferedReader reader)
parse the given batch file |
private Test.Command |
parseBatchSection(java.lang.String... stopWords)
parse a section of the batch file |
private java.lang.String[] |
splitArgs(java.lang.String line)
split a line into arguments. |
private static void |
testAuthInfo1Create(Port port,
java.lang.String... args)
test method for the creation of an AuthInfo 1 |
private static void |
testAuthInfo1Delete(Port port,
java.lang.String... args)
test method for the deletion of the AuthInfo 1 |
private static void |
testAuthInfo2Create(Port port,
java.lang.String... args)
test method for the creation of an AuthInfo 2 |
private static void |
testContactCheck(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testContactCreate(Port port,
java.lang.String[] args)
test method for the contact create request |
private static void |
testContactInfo(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testContactUpdate(Port port,
java.lang.String[] args)
test method for the contact create request |
private static void |
testDnsKeyUpdate(Port port,
java.lang.String... args)
test method for the change of DNSKEY data |
private static void |
testDomainChangeProv(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testDomainCheck(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testDomainCreate(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testDomainCreateExt(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testDomainDelete(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testDomainInfo(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testDomainMigrateDescr(Port port,
java.lang.String[] args)
test method for the domain check request |
private static void |
testQueueClear(Port port,
java.lang.String[] args)
test method that removes all messages (of the given type if specified) |
private static void |
testQueueDelete(Port port,
java.lang.String[] args)
test method to remove a message from the queue |
private static void |
testQueueRead(Port port,
java.lang.String[] args)
test method for the queue read request |
private static void |
wait(java.lang.String[] args)
wait for a certain time |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.BufferedReader batchReader
private java.lang.String[] parsedArgs
private static java.util.regex.Pattern argPattern
Constructor Detail |
---|
public Test()
Method Detail |
---|
private static ContactData createContactData(java.lang.String... args)
args
- the arguments
null
if the creation
failedprivate static void testContactCreate(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testContactUpdate(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testContactCheck(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testContactInfo(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testDomainCheck(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testDomainInfo(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static DomainData createDomainData(boolean withAuthInfo, java.lang.String... args)
withAuthInfo
- whether AuthInfo may be providedargs
- the arguments
null
if failed
for some reasonprivate static void testDomainCreate(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static DomainData createDomainDataExt(boolean withAuthInfo, java.lang.String... args)
withAuthInfo
- whether AuthInfo may be providedargs
- the arguments
null
if failed
for some reasonprivate static void testDomainCreateExt(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testDomainChangeProv(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testDomainDelete(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testDomainMigrateDescr(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testQueueRead(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the port to useargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testQueueDelete(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the portargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testQueueClear(Port port, java.lang.String[] args) throws java.lang.Exception
port
- the portargs
- additional arguments
java.lang.Exception
- on any exceptionprivate static void testAuthInfo1Create(Port port, java.lang.String... args) throws java.lang.Exception
port
- the portargs
- the arguments
java.lang.Exception
- on any exceptionprivate static void testAuthInfo1Delete(Port port, java.lang.String... args) throws java.lang.Exception
port
- the portargs
- the arguments
java.lang.Exception
- on any exceptionprivate static void testAuthInfo2Create(Port port, java.lang.String... args) throws java.lang.Exception
port
- the portargs
- the arguments
java.lang.Exception
- on any exceptionprivate static void testDnsKeyUpdate(Port port, java.lang.String... args) throws java.lang.Exception
port
- the portargs
- the arguments
java.lang.Exception
- on any exceptionprivate static void wait(java.lang.String[] args) throws java.lang.Exception
args
- the arguments
java.lang.Exception
- on exceptionsprivate static void execute(Port port, java.lang.String[] args, int offset) throws java.lang.Exception
port
- the portargs
- the argumentsoffset
- the index to the first argument to use
java.lang.Exception
- on exceptionsprivate java.lang.String[] splitArgs(java.lang.String line)
line
- the line
private Test.Command parseBatchSection(java.lang.String... stopWords) throws java.io.IOException
stopWords
- the words to stop parsing
null
if end of input has been encountered
without reading a single command
java.io.IOException
- on exceptions while readingprivate Test.Command parseBatchFile(java.io.BufferedReader reader) throws java.io.IOException
reader
- the reader
java.io.IOException
- on i/o exceptionsprivate void doMain(java.lang.String[] args)
args
- the command line argumentspublic static void main(java.lang.String[] args)
args
- the command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |