/**
  * Set up environment.
  *
  * @throws Exception to JUnit
  */
 public void setUp() throws Exception {
   UnitTestHelper.loadConfig(UnitTestHelper.CONFIG_FILE);
   this.commentGraphNode = new GraphNode();
   Uml1SemanticModelBridge usmb = new Uml1SemanticModelBridge();
   usmb.setElement(new CommentImpl());
   this.commentGraphNode.setSemanticModel(usmb);
   this.diagram = new Diagram();
   this.action = new PasteCommentGraphNodeAction(this.commentGraphNode, this.diagram);
 }
 /**
  * Set up environment.
  *
  * @throws Exception to JUnit
  */
 public void setUp() throws Exception {
   UnitTestHelper.loadConfig(UnitTestHelper.CONFIG_FILE);
   this.freeTextGraphNode = new GraphNode();
   SimpleSemanticModelElement ssme = new SimpleSemanticModelElement();
   ssme.setTypeInfo("FreeText");
   this.freeTextGraphNode.setSemanticModel(ssme);
   this.freeTextGraphNode.addContained(new TextElement());
   this.diagram = new Diagram();
   this.manager = new UMLModelManager();
   this.manager.setProjectConfigurationManager(new ProjectConfigurationManager(this.manager));
   this.action = new AddFreeTextAction(this.freeTextGraphNode, this.diagram, this.manager);
 }
 /** Clear the environment. */
 public void tearDown() {
   UnitTestHelper.clearConfig();
 }