|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.nodes.mockobject_group.MockObjectDataValidator
public class MockObjectDataValidator
A class used to validate prospective name and interface data for a Mock Object.
| Constructor Summary | |
|---|---|
MockObjectDataValidator(IMockObjectDataManager mockObjectDataManager)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
isValidInterface(java.lang.String interfaceName)
Vaidates the supplied interface, testing for a non-empty value and that the value is the name of a valid interface. |
java.lang.String |
isValidJndiName(java.lang.String jndiName,
java.lang.Object excluded)
Returns whether the supplied JNDI name is valid. |
java.lang.String |
isValidMockObjectName(java.lang.String mockObjectName,
java.lang.Object excluded)
Verifies that the supplied Mock Object name is not empty and does not duplicate that of another Mock Object defined in the Fixture. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockObjectDataValidator(IMockObjectDataManager mockObjectDataManager)
mockObjectDataManager - the IMockObjectDataManager used
by this validator to check for already used Mock Object and JNDI names.| Method Detail |
|---|
public java.lang.String isValidMockObjectName(java.lang.String mockObjectName,
java.lang.Object excluded)
mockObjectName - the proposed name for the Mock Object.
public java.lang.String isValidInterface(java.lang.String interfaceName)
interfaceName - the name of the proposed interface.
public java.lang.String isValidJndiName(java.lang.String jndiName,
java.lang.Object excluded)
jndiName - the JNDI name.excluded - an Object to exclude from duplication testing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||