MockCentral configuration file DTD
Below is an html version of the MockCentral configuration file Document Type Definition, provided for a general understanding of the workings of the application and for those who want to manually edit the xml. The server does not actually validate against this DTD, but configuration files created with the MockCentralEditor application are guaranteed to conform to the structure below. The MockCentralServer distribution contains this DTD file in regular format for anyone interested.
<?xml version="1.0" encoding="UTF-8"?> <!ELEMENT anyParams (#PCDATA)> <!ELEMENT className (#PCDATA)> <!ELEMENT collectionEntry (valueType,value,valueClassName,collectionEntry*,constructorArg*)*> <!ELEMENT constructorArg (valueType,value,valueClassName,collectionEntry*,constructorArg*)*> <!ELEMENT expectation (anyParams?,expectedResult?,methodName,methodParam*,mockMethod)*> <!ELEMENT expectations (expectation*)> <!ELEMENT expectedResult (valueType,value?,valueClassName?,collectionEntry*,constructorArg*)> <!ELEMENT fixture (fixtureName,fixtureDescription?,simpleBoundObjects,mockObjectSetups,importFixture*)> <!ELEMENT fixtureDescription (#PCDATA)> <!ELEMENT fixtureName (#PCDATA)> <!ELEMENT importFixture (#PCDATA)> <!ELEMENT jndiName (#PCDATA)> <!ELEMENT methodName (#PCDATA)> <!ELEMENT methodParam (collection?,collectionEntry*,constructorArg*,value?,valueClassName?,valueType)*> <!ELEMENT mockMethod (#PCDATA)> <!ELEMENT mockObjectName (#PCDATA)> <!ELEMENT mockObjectSetup (mockObjectName,className,expectations,jndiName?)> <!ELEMENT mockObjectSetups (mockObjectSetup*)> <!ELEMENT mockcentral-config (fixture*)> <!ELEMENT simpleBoundObject (jndiName,simpleBoundObjectData)> <!ELEMENT simpleBoundObjectData (collectionEntry*,constructorArg*,valueType,value?,valueClassName?)> <!ELEMENT simpleBoundObjects (simpleBoundObject*)> <!ELEMENT value (#PCDATA)> <!ELEMENT valueClassName (#PCDATA)> <!ELEMENT valueType (#PCDATA)>
