krysalis-sandbox/workflow/src/test/org/krysalis/workflow/test WorkFlowManagerTestCase.java,1.2,1.3

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/test/org/krysalis/workflow/test
In directory sc8-pr-cvs1:/tmp/cvs-serv31230/src/test/org/krysalis/workflow/test

Modified Files:
	WorkFlowManagerTestCase.java 
Log Message:
Fixing role configuration.
Using configuration class instead of parameters for actions
and conditions.


Index: WorkFlowManagerTestCase.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/test/org/krysalis/workflow/test/WorkFlowManagerTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** WorkFlowManagerTestCase.java	15 Mar 2003 18:44:38 -0000	1.2
--- WorkFlowManagerTestCase.java	17 Mar 2003 10:39:20 -0000	1.3
***************
*** 118,121 ****
--- 118,141 ----
                     state.getState());
        workflow.release(state);      
+ 
+       workflow.process(new DefaultWorkFlowEvent(resource, "post"));
+ 
+       state = workflow.lookup(resource);
+       assertNotNull("Test lookup of the workflow state", state);
+       assertEquals("Test of the workflow state resource", resource,
+                    state.getResource());
+       assertEquals("Test of the intial workflow state", "ready-to-publish",
+                    state.getState());
+       workflow.release(state);
+ 
+       workflow.process(new DefaultWorkFlowEvent(resource, "revert"));
+ 
+       state = workflow.lookup(resource);
+       assertNotNull("Test lookup of the workflow state", state);
+       assertEquals("Test of the workflow state resource", resource,
+                    state.getResource());
+       assertEquals("Test of the intial workflow state", "proof-reading",
+                    state.getState());
+       workflow.release(state);
      }
      catch (ComponentException ce)




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.