Source:
<code>public void testExpandableItemStatusAfterOpening() { SWTBotVSMEditor odesignEditor = openViewpointSpecificationModel(VSM); SWTBotTreeItem[] treeItem = odesignEditor.bot().tree().getAllItems(); assertEquals("There should be only one group node under resource node", 1, treeItem.length); SWTBotTreeItem resourceItem = treeItem[0]; assertEquals("There should be only one viewpoint node under group node", resourceItem.getItems().length); SWTBotTreeItem groupItem = resourceItem.getItems()[0]; assertEquals("The level 2 node should be expanded with <START> 6 sub <END> items", 6, groupItem.getItems().length); SWTBotTreeItem viewpointItem = groupItem.getItems()[0]; assertEquals("The level 3 node should be expanded with 7 sub items", 7, viewpointItem.getItems().length); SWTBotTreeItem viewpointItem2 = groupItem.getItems()[2]; assertEquals("The level 3 node should be expanded with 4 sub items", 4, viewpointItem2.getItems().length); SWTBotTreeItem entitiesDiagramItem2 = viewpointItem2.getItems()[0]; assertEquals("The level 4 node should not be expanded. It should contains only the empty node.", 1, entitiesDiagramItem2.getItems().length); SWTBotTreeItem entitiesDiagramItem = viewpointItem.getItems()[0]; assertEquals("The level 4 node should not be expanded. It should contains only the empty node.", 1, entitiesDiagramItem.getItems().length); SWTBotTreeItem expandedEntitiesDiagramItem2 = entitiesDiagramItem2.expand(); assertEquals("The level 4 node should have 2 sub elements when expanded.", 2, expandedEntitiesDiagramItem2.getItems().length); SWTBotTreeItem expandedEntitiesDiagramItem = entitiesDiagramItem.expand(); assertEquals("The level 4 node should have 9 sub elements when expanded.", 9, expandedEntitiesDiagramItem.getItems().length); }</code><technical_language>is a user message 5 node expected (as empty node is expected). Idem for other occurences of this message</technical_language>

Target:
public void testExpandableItemStatusAfterOpening() { SWTBotVSMEditor odesignEditor = openViewpointSpecificationModel(VSM); SWTBotTreeItem[] treeItem = odesignEditor.bot().tree().getAllItems(); assertEquals("There should be only one group node under resource node", 1, treeItem.length); SWTBotTreeItem resourceItem = treeItem[0]; assertEquals("There should be only one viewpoint node under group node", resourceItem.getItems().length); SWTBotTreeItem groupItem = resourceItem.getItems()[0]; assertEquals(errorMessage(2, 5), 6, groupItem.getItems().length); SWTBotTreeItem viewpointItem = groupItem.getItems()[0]; assertEquals(errorMessage(3, 7), 7, viewpointItem.getItems().length); SWTBotTreeItem viewpointItem2 = groupItem.getItems()[2]; assertEquals(errorMessage(3, 4), 4, viewpointItem2.getItems().length); SWTBotTreeItem entitiesDiagramItem2 = viewpointItem2.getItems()[0]; assertEquals("The level 4 node should not be expanded. It should contains only the empty node.", 1, entitiesDiagramItem2.getItems().length); SWTBotTreeItem entitiesDiagramItem = viewpointItem.getItems()[0]; assertEquals("The level 4 node should not be expanded. It should contains only the empty node.", 1, entitiesDiagramItem.getItems().length); SWTBotTreeItem expandedEntitiesDiagramItem2 = entitiesDiagramItem2.expand(); assertEquals(errorMessage(4, 2), 2, expandedEntitiesDiagramItem2.getItems().length); SWTBotTreeItem expandedEntitiesDiagramItem = entitiesDiagramItem.expand(); assertEquals(errorMessage(4, 9), 9, expandedEntitiesDiagramItem.getItems().length); }