cEditor.setActiveEditor(page);
}
});
StsBotConfigEditor editor = getBot().activeConfigEditor();
StsBotGefEditor gEditor = editor.toGefEditorFromUri(BatchSchemaConstants.URI);
List<SWTBotGefEditPart> parts = gEditor.editParts(AllOf.allOf(
EditPartMatcherFactory.editPartOfType(SimpleActivityWithContainerPart.class),
EditPartMatcherFactory.withLabel("step1")));
assertFalse(parts.isEmpty());
SWTBotGefEditPart activityPart = parts.get(0);
parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
EditPartMatcherFactory.withLabel("step1")));
assertEquals(Collections.emptyList(), parts);
gEditor.activateTool(BatchSchemaConstants.ELEM_NEXT);
activityPart.click();
parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
EditPartMatcherFactory.withLabel("step1")));
assertFalse(parts.isEmpty());
SWTBotGefEditPart containerPart = parts.get(0);
assertFalse(containerPart.children().isEmpty());