/*
   * @see junit.framework.TestCase#setUp()
   */
  public void setUp() throws Exception {
    super.setUp();
    (new InitNotation()).init();
    (new InitNotationUml()).init();
    (new InitNotationJava()).init();

    InitializeModel.initializeDefault();
    new InitProfileSubsystem().init();
    nodeTypes =
        new Object[] {
          Model.getCoreFactory().createClass(),
          Model.getCoreFactory().createComment(),
          Model.getCoreFactory().createDataType(),
          Model.getCoreFactory().createEnumeration(),
          Model.getCommonBehaviorFactory().createException(),
          Model.getCoreFactory().createInterface(),
          Model.getModelManagementFactory().createModel(),
          Model.getModelManagementFactory().createPackage(),
          Model.getCommonBehaviorFactory().createSignal(),
          Model.getExtensionMechanismsFactory().createStereotype(),
          Model.getModelManagementFactory().createSubsystem(),
          Model.getUseCasesFactory().createActor(),
          Model.getUseCasesFactory().createUseCase(),
          Model.getCommonBehaviorFactory().createObject(),
          Model.getCommonBehaviorFactory().createComponentInstance(),
          Model.getCommonBehaviorFactory().createNodeInstance(),
        };
  }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   InitializeModel.initializeDefault();
   manager = new ProfileManagerImpl();
   ProfileFacade.setManager(manager);
 }
 /*
  * @see junit.framework.TestCase#setUp()
  */
 public void setUp() throws Exception {
   super.setUp();
   InitializeModel.initializeDefault();
   new InitProfileSubsystem().init();
   ProjectBrowser.makeInstance(null, true, new JPanel());
   InitSubSystemForTest.initSubsystem(new InitUmlUI());
   InitSubSystemForTest.initSubsystem(new InitNotationUml());
 }
 /*
  * @see junit.framework.TestCase#setUp()
  */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   InitializeModel.initializeDefault();
   ns = Model.getModelManagementFactory().createModel();
   elem = Model.getCoreFactory().buildClass(ns);
   model = new UMLModelElementClientDependencyListModel();
   model.setTarget(elem);
   ThreadHelper.synchronize();
 }
  /*
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() {
    InitializeModel.initializeDefault();
    new InitProfileSubsystem().init();

    project = ProjectManager.getManager().makeEmptyProject();

    action = getAction();
    ns = getNamespace();
    validNamespaces = getValidNamespaceClasses();

    TargetManager.getInstance().setTarget(ns);
  }
Esempio n. 6
0
 /*
  * @see junit.framework.TestCase#setUp()
  */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   InitializeModel.initializeDefault();
   (new InitNotation()).init();
   (new InitNotationUml()).init();
   (new InitNotationJava()).init();
   (new InitDiagramAppearanceUI()).init();
   (new InitActivityDiagram()).init();
   (new InitCollaborationDiagram()).init();
   (new InitDeploymentDiagram()).init();
   (new InitSequenceDiagram()).init();
   (new InitStateDiagram()).init();
   (new InitClassDiagram()).init();
   (new InitUseCaseDiagram()).init();
   (new InitProfileSubsystem()).init();
   ProjectManager.getManager().makeEmptyProject();
 }
 /*
  * @see junit.framework.TestCase#setUp()
  */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   InitializeModel.initializeDefault();
   new InitProfileSubsystem().init();
   Project p = ProjectManager.getManager().getCurrentProject();
   elem = Model.getCommonBehaviorFactory().createReception();
   signals = new Object[NO_OF_ELEMENTS];
   Object m = Model.getModelManagementFactory().createModel();
   Collection roots = new ArrayList();
   roots.add(m);
   p.setRoots(roots);
   Model.getCoreHelper().setNamespace(elem, m);
   for (int i = 0; i < NO_OF_ELEMENTS; i++) {
     signals[i] = Model.getCommonBehaviorFactory().createSignal();
     Model.getCoreHelper().addOwnedElement(m, signals[i]);
   }
   model = new UMLReceptionSignalComboBoxModel();
   model.targetSet(new TargetEvent(this, "set", new Object[0], new Object[] {elem}));
   ThreadHelper.synchronize();
 }
 /**
  * Constructor.
  *
  * @param arg0 test case name
  */
 public TestActionStateDiagram(String arg0) {
   super(arg0);
   InitializeModel.initializeDefault();
   new InitProfileSubsystem().init();
 }
 /*
  * @see junit.framework.TestCase#setUp()
  */
 @Override
 public void setUp() throws Exception {
   super.setUp();
   InitializeModel.initializeDefault();
   new InitProfileSubsystem().init();
 }
 /**
  * The constructor.
  *
  * @param name the name
  */
 public TestDiagramUpdateAtLoad(String name) {
   super(name);
   InitializeModel.initializeDefault();
 }
 /*
  * @see junit.framework.TestCase#setUp()
  */
 public void setUp() throws Exception {
   super.setUp();
   InitializeModel.initializeDefault();
   new InitProfileSubsystem().init();
   ProjectManager.getManager().makeEmptyProject();
 }
 @Override
 protected void setUp() throws Exception {
   InitializeModel.initializeDefault();
   mother = new ProfileMother();
 }
Esempio n. 13
0
  /*
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() {
    InitializeModel.initializeDefault();
    new InitProfileSubsystem().init();

    TargetManager.getInstance().setTarget(null);
  }