You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2004/02/04 11:23:01 UTC

cvs commit: cocoon-lenya/src/test/org/apache/lenya/cms/task DocumentRenameTaskTest.java

egli        2004/02/04 02:23:01

  Modified:    src/test/org/apache/lenya/cms/task
                        DocumentRenameTaskTest.java
  Log:
  Remove read code.
  
  Revision  Changes    Path
  1.5       +6 -8      cocoon-lenya/src/test/org/apache/lenya/cms/task/DocumentRenameTaskTest.java
  
  Index: DocumentRenameTaskTest.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/test/org/apache/lenya/cms/task/DocumentRenameTaskTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DocumentRenameTaskTest.java	2 Feb 2004 02:51:51 -0000	1.4
  +++ DocumentRenameTaskTest.java	4 Feb 2004 10:23:01 -0000	1.5
  @@ -140,14 +140,8 @@
   	protected void prepareTest() throws Exception {
   		File publicationDirectory = PublicationHelper.getPublication().getDirectory();
           String publicationPath = publicationDirectory.getAbsolutePath()+ File.separator; 
  -		File authoringDirectory = new File(publicationPath, AUTHORING_PATH);
  -
   		String filename = AUTHORING_PATH +FIRST_DOCUMENT_ID + File.separator + "index_de.xml";
  -		String filepath = authoringDirectory + FIRST_DOCUMENT_ID + File.separator + "index_de.xml";  
  -		String en_filepath = authoringDirectory + FIRST_DOCUMENT_ID + File.separator + "index_en.xml";  
  -
  -		// TODO generate the resources  
  -
  +		
   		// generate the rcml and rcbak files
   		File rcmlDirectory = new File(publicationPath , RCML_DIR);
   		File rcbakDirectory = new File(publicationPath , RCBAK_DIR);
  @@ -226,7 +220,11 @@
   		SiteTree sitetree = PublicationHelper.getPublication().getSiteTree(Publication.AUTHORING_AREA);
   		SiteTreeNode node = sitetree.getNode(secdocumentid);
   		assertNotNull(node);
  -		System.out.println("Sitetree node with id "+node.getId()+" was created as child of node with id: " + node.getAbsoluteParentId());
  +        System.out.println(
  +            "Sitetree node with id "
  +                + node.getId()
  +                + " was created as child of node with id: "
  +                + node.getAbsoluteParentId());
   		SiteTreeNode firstnode = sitetree.getNode(FIRST_DOCUMENT_ID);
   		assertNull(firstnode);
   		System.out.println("Sitetree node for document id "+FIRST_DOCUMENT_ID+" was deleted");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org