Operation |
Details |
public backupAll():void |
Sequential Tags: | annotations=@Test@Ignore throws=Exception
| Notes: | Saves complete bundle of the XMLs related to citation style testing collection: 1. User account 2. Context 3. Grants 4. Testing items into the XML files | |
public backupContext():void |
Sequential Notes: | Saves Context into the file | |
public backupItems():void |
Sequential Notes: | Saves Items of the Context into the file | |
public backupUser():void |
Sequential Notes: | Saves User Account and Grants assigned to the user into the file | |
private static cleanCit( String str):String |
Sequential |
private createDocument( String xml):Document |
Sequential |
private diffStrings( String str1, String str2):boolean |
Sequential Notes: | Compares two strings @return | |
private getContextId():String |
Sequential Notes: | Get <code>objid</code> of the Context against the name of it @return objid of the Context | |
private getCreatorOfUserId( String userXml):String |
Sequential Notes: | Get <code>objid</code> of the Creator of the User @return objid of the Creator of the User | |
private getFileAsString( String fileName):String |
Sequential |
private getPathToTestResources():String |
Sequential |
private getUserId( String userXml):String |
Sequential Notes: | Get <code>objid</code> of the User @return objid of the User | |
public restoreAll():void |
Sequential Tags: | annotations=@Test@Ignore throws=Exception
| Notes: | Restores the bundle of the XML files needed to create citation style testing collection in the current eSciDoc framework | |
private restoreContext():boolean |
Sequential Notes: | Restores Context @return <code>true</code> if successful, <code>false</code> otherwise | |
private restoreGrants():boolean |
Sequential Notes: | restores Grants for the Context on the User @return <code>true</code> if successful, <code>false</code> otherwise | |
private restoreItems():boolean |
Sequential |
private restoreUser():boolean |
Sequential Notes: | Creates User Account @return <code>true</code> if successful, <code>false</code> otherwise | |
public static setUp():void |
Sequential Tags: | annotations=@BeforeClass throws=Exception
| |
public const testCitationStylesGeneration():void |
Sequential Tags: | annotations=@Test throws=Exception
| Notes: | Tests all citation styles substantial | |
private writeToFile( String fileName, String content):void |
Sequential |
private xpathNode( String expr, String xml):Node |
Sequential |
private xpathNode( String expr, Document doc):Node |
Sequential |
private xpathNodeList( String expr, String xml):NodeList |
Sequential |
private xpathNodeList( String expr, Document doc):NodeList |
Sequential |
private xpathNumber( String expr, String xml):Double |
Sequential |
private xpathNumber( String expr, Document doc):Double |
Sequential |
private xpathString( String expr, String xml):String |
Sequential |
private xpathString( String expr, Document doc):String |
Sequential |