Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » plugin test fails on linux works on windows
plugin test fails on linux works on windows [message #148436] Fri, 12 March 2004 19:41
Eclipse UserFriend
Originally posted by: edoardo.NOSPAM.NOSPAM.supanet.com

Hi

I encountered what looks like a platform bug...

doing the following on M7
- create plugin (eg xml editor)
- create another plugin in its own distinct eclipse project, dependent
on plugin
- in the original plugin, put some stuff to be tested, e.g.:

public class ActionExerciser {
IAction action;
public ActionExerciser() {
super();
action = makeAction();
}
IAction makeAction() {

return new Action() {
public void run() {
System.out.println("running!");

}
};
}
}

in the other project, put a testcase with runner, eg:

public class ActionExerciserTest extends TestCase {

public static void main(String[] args) {
junit.textui.TestRunner.run(ActionExerciserTest.class);
}

public ActionExerciserTest(String name) {
super(name);
}

public void testOne() throws Exception {
ActionExerciser ae = new ActionExerciser();
IAction action = ae.makeAction();
assertNotNull(action);
}

}

now run the testcase ... works on windows, fails in Linux/gtk
with no warnings as I think the class canot be instantiated.

tia
Edo
Previous Topic:Opening projects hassle
Next Topic:Scrapbook error?
Goto Forum:
  


Current Time: Sun May 11 20:34:36 EDT 2025

Powered by FUDForum. Page generated in 0.03338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top