Wednesday 20 September 2006

it's all greek to me...

"Let's study the code of this testcase. In the first line of the method, a process archive object is created. We use a constructor accepting the filename of the archive. In our case it is the file we created earlier and which lives in the 'src' folder of our project. After asserting that this object is really created, we extract a process definition object from it. This object is fed to the constructor of a process instance object. We have a process instance object, but this process is not yet started, so we can safely assert that its root token still resides in the start node. After signalling the token will move to the next state and the process will be in the 'auction' state. Finally another signal will end the process."