You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/09/02 15:41:51 UTC

cvs commit: cocoon-lenya/src/test/org/apache/lenya/cms/workflow WorkflowTest.java

andreas     2003/09/02 06:41:51

  Modified:    src/test/org/apache/lenya/cms/workflow WorkflowTest.java
  Log:
  reflecting changes to workflow classes
  
  Revision  Changes    Path
  1.18      +8 -5      cocoon-lenya/src/test/org/apache/lenya/cms/workflow/WorkflowTest.java
  
  Index: WorkflowTest.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/test/org/apache/lenya/cms/workflow/WorkflowTest.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- WorkflowTest.java	14 Jul 2003 18:08:01 -0000	1.17
  +++ WorkflowTest.java	2 Sep 2003 13:41:51 -0000	1.18
  @@ -142,15 +142,18 @@
           File configDir = new File(publication.getDirectory(), ItemManager.PATH);
           assertTrue(configDir.exists());
   
  -        File configurationDirectory = new File(publication.getDirectory(), "config/ac");
           Policy policy = getPolicyManager().getPolicy(getAccreditableManager(), url);
   
           DocumentType type = DocumentTypeBuilder.buildDocumentType(documentTypeName, publication);
           String workflowId = type.getWorkflowFileName();
  -        WorkflowFactory.initHistory(document, workflowId);
  -
  +        
           WorkflowFactory factory = WorkflowFactory.newInstance();
   
  +        String[] emptyRoles = {};
  +        Situation situation = factory.buildSituation(emptyRoles, "test", "127.0.0.1");
  +        
  +        WorkflowFactory.initHistory(document, workflowId, situation);
  +
           for (int situationIndex = 0; situationIndex < situations.length; situationIndex++) {
               WorkflowInstance instance = null;
               instance = factory.buildInstance(document);
  @@ -173,10 +176,10 @@
   
               System.out.println();
   
  -            Situation situation = null;
  +            situation = null;
   
               try {
  -                situation = factory.buildSituation(roles);
  +                situation = factory.buildSituation(roles, identity);
               } catch (WorkflowException e1) {
                   e1.printStackTrace(System.err);
               }
  
  
  

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