Exemplo n.º 1
0
 /**
  * tests if the minimal node structure of the model page is there and correct.
  *
  * @throws ClientException if a request to the server fails for any reason
  */
 @Category(SmokeTest.class)
 @Test
 public void testDefaultModelPageStructure() throws ClientException {
   // check if model and flow node exist
   Assert.assertFalse(
       "The flow node is missing on the model page!",
       modelPageAdmin.getFlowNode().isMissingNode());
   Assert.assertFalse(
       "The model node is missing on the model page!",
       modelPageAdmin.getModelNode().isMissingNode());
   // there should be a default participant step
   // get the root flow par system
   ParSys flow = modelPageAdmin.getFlow();
   // get the first child by default there is always a first participant step
   Participant p = flow.getFirstChild();
   Assert.assertNotNull("There is no default participant step on new Workflow Page!", p);
   // the model should have a node and transitions sub section
   Assert.assertFalse(
       "The model is missing the 'nodes' section!",
       modelPageAdmin.getModelNode().get("nodes").isMissingNode());
   Assert.assertFalse(
       "The model is missing the 'transitions' section!",
       modelPageAdmin.getModelNode().get("transitions").isMissingNode());
 }