コード例 #1
0
 /** @see junit.framework.TestCase#tearDown() */
 @Override
 protected void tearDown() throws Exception {
   lnf.setTheme(null);
   lnf.uninitialize();
   lnf = null;
   super.tearDown();
 }
コード例 #2
0
ファイル: SubModuleViewTest.java プロジェクト: jodoming/riena
 @Override
 protected void tearDown() throws Exception {
   node.deactivate(null);
   removeExtension("sub.module.view.test");
   shell.dispose();
   super.tearDown();
 }
コード例 #3
0
ファイル: SubModuleViewTest.java プロジェクト: jodoming/riena
  @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();
  }
コード例 #4
0
 @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());
 }
コード例 #5
0
  @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);
  }
コード例 #6
0
 @Override
 protected void tearDown() throws Exception {
   super.tearDown();
   authenticationService.unregister();
 }
コード例 #7
0
 /** @see junit.framework.TestCase#setUp() */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   lnf = new RienaDefaultLnf();
   lnf.initialize();
 }
コード例 #8
0
 @Override
 protected void tearDown() throws Exception {
   realm.dispose();
   realm = null;
   super.tearDown();
 }