plugin test fails on linux works on windows [message #148436] |
Fri, 12 March 2004 19:41 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03338 seconds