Re: [Java-gnome-developer] Eclipse, JUnit and java-gnome
Brought to you by:
afcowie
From: Alexey T. <a_t...@ma...> - 2009-02-20 20:17:34
|
> > I am trying to start JUnit test from Eclipse. My test method hangs > on > > Gtk.init(). > > Weird. > > > An ordinary program with Gtk.init() works fine. > > I assume you've run regularly been running java-gnome's UnitTest suite > in an Eclipse JUnit launcher without any trouble. 186 tests and > growing! > > Without more information about what you're actually doing (ie, source > code) and in what environment (ie, which Linux distro, what versions > of > things, etc) it's hard to suggest what you might be doing wrong. Good > luck, though. > This is the test I try to start from Eclipse JUnit. package test; import org.gnome.gtk.Gtk; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; public class Test1 { @BeforeClass public static void setUpBeforeClass() throws Exception { Gtk.init(new String[]{}); Gtk.main(); } @Before public void setUp() throws Exception { } @Test public void test1() throws Exception{ } } The test hangs on GtkMain.main(); (line 56) I use Ubuntu 8.10. Java-gnome version is 4.0.9 Thank you for answer. |