| CustomDNS.Tests.CustomDNSTestCase
All known Subclasses: CustomDNS.Tests.TestVirtualDNS, CustomDNS.Tests.TestSimpleConfiguration, CustomDNS.Tests.TestConfiguration, CustomDNS.Tests.TestZoneController,
CustomDNSTestCase | public class CustomDNSTestCase extends TestCase (Code) | | A subclass of TestCase with special support for testing CustomDNS.
|
Method Summary | |
public static Object | findService(ESConnection core, Class intf, ESQuery query) Find an E-speak service.
Parameters: core - A connection to an e-speak core. Parameters: intf - The interface type to find. Parameters: query - A query object specifying the interface's properties. | public static String | fullPath(String filename) Find a specific test file.
XXX - Do we need a better name?
Parameters: filename - The name of a file containing test data. | protected static synchronized ESConnection | getESConnection() Get a connection to the E-Speak core. |
CustomDNSTestCase | public CustomDNSTestCase(String name)(Code) | | Create a new test case.
Parameters: name - The name of the test case. |
findService | public static Object findService(ESConnection core, Class intf, ESQuery query) throws ESInvocationException, LookupFailedException(Code) | | Find an E-speak service.
Parameters: core - A connection to an e-speak core. Parameters: intf - The interface type to find. Parameters: query - A query object specifying the interface's properties. A service object matching the query. exception: ESInvocationException - An error occured while tryingto connect to the E-Speak core. exception: LookupFailedException - The specified object could notbe found. |
fullPath | public static String fullPath(String filename)(Code) | | Find a specific test file.
XXX - Do we need a better name?
Parameters: filename - The name of a file containing test data. A path to the specified test file. |
getESConnection | protected static synchronized ESConnection getESConnection() throws ESInvocationException, ESLibException(Code) | | Get a connection to the E-Speak core.
These connections are very expensive to set up, so we only do
this once for an entire test run.
A connection to the test core. exception: ESInvocationException - An error occured while tryingto connect to the E-Speak core. exception: ESLibException - Cause unknown. See Also: ESConnection |
|
|