assertEquals(0, element.attributeCount());
}
public void testWriteStartStateName() throws Exception {
ProcessDefinition processDefinition = new ProcessDefinition();
processDefinition.setStartState( new StartState("mystartstate") );
Element element = AbstractXmlTestCase.toXmlAndParse( processDefinition, "/process-definition/start-state[1]" );
assertEquals("start-state", element.getName());
assertEquals(1, element.attributeCount());
assertEquals("mystartstate", element.attributeValue("name"));
}