/** @see junit.framework.TestCase#tearDown() */
 @Override
 protected void tearDown() throws Exception {
   lnf.setTheme(null);
   lnf.uninitialize();
   lnf = null;
   super.tearDown();
 }
Beispiel #2
0
 @Override
 protected void tearDown() throws Exception {
   node.deactivate(null);
   removeExtension("sub.module.view.test");
   shell.dispose();
   super.tearDown();
 }
Beispiel #3
0
  @Override
  protected void setUp() throws Exception {
    super.setUp();
    shell = new Shell();
    parentComposite = new Composite(shell, SWT.NONE);
    addPluginXml(SubModuleViewTest.class, "SubModuleViewTest.xml");

    appNode = new ApplicationNode();
    final SubApplicationNode subAppNode = new SubApplicationNode();
    appNode.addChild(subAppNode);
    final ModuleGroupNode mgNode = new ModuleGroupNode(null);
    subAppNode.addChild(mgNode);
    moduleNode = new ModuleNode(null, "TestModuleLabel");
    mgNode.addChild(moduleNode);

    anotherNode = new SubModuleNode(new NavigationNodeId("testId2", "2"), "TestSubModuleLabel2");
    moduleNode.addChild(anotherNode);
    anotherNodeSameView =
        new SubModuleNode(new NavigationNodeId("testId", "1"), "TestSubModuleLabel3");
    moduleNode.addChild(anotherNodeSameView);
    nodesBoundToView = new ArrayList<SubModuleNode>();
    nodesBoundToSharedView = new ArrayList<SubModuleNode>();

    subModuleNodeView = new TestView();
    node = new SubModuleNode(new NavigationNodeId("testId", "0"), "TestSubModuleLabel");
    moduleNode.setNavigationNodeController(new ModuleController(moduleNode));
    moduleNode.addChild(node);
    subModuleNodeView.createPartControl(new Shell());
    node.activate();
  }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   startBundles("org\\.eclipse\\.riena.communication.core", null);
   startBundles("org\\.eclipse\\.riena.communication.factory.hessian", null);
   startBundles("org\\.eclipse\\.riena.communication.registry", null);
   stopBundles("org\\.eclipse\\.riena.example.client", null);
   authenticationService =
       Register.remoteProxy(IAuthenticationService.class)
           .usingUrl("http://localhost:8080/hessian/AuthenticationService")
           .withProtocol("hessian")
           .andStart(Activator.getDefault().getContext());
 }
  @Override
  protected void setUp() throws Exception {
    super.setUp();
    realm = new DefaultRealm();

    bean = new TestBean();
    model = PojoObservables.observeValue(bean, TestBean.PROPERTY);
    target = new WritableValue();

    valueBindingSupport = new ValueBindingSupport(target, model);

    markable = new Markable();
    valueBindingSupport.setMarkable(markable);
  }
 @Override
 protected void tearDown() throws Exception {
   super.tearDown();
   authenticationService.unregister();
 }
 /** @see junit.framework.TestCase#setUp() */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   lnf = new RienaDefaultLnf();
   lnf.initialize();
 }
 @Override
 protected void tearDown() throws Exception {
   realm.dispose();
   realm = null;
   super.tearDown();
 }