コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
 /** Clear the environment. */
 public void tearDown() {
   UnitTestHelper.clearConfig();
 }