That does not work great, it freezes:

import org.eclipse.swt.examples.addressbook.AddressBook;
import org.junit.Test;

public class BlaTest {
    @Test
    public void me() {
        AddressBook.main(null);
        // freezes after previous statement
        // so no SWTBot statements can be run after the GUI started
    }
}

See my mail before where I replied you in more detail. I just wrote this 
additional for you to see what does not work.


--- On Thu, 10/9/08, Ketan Padegaonkar <[EMAIL PROTECTED]> wrote:
From: Ketan Padegaonkar <[EMAIL PROTECTED]>
Subject: Re: [SWTBot-users] [ANN] SWTBot 2.0 alpha available.
To: "Ketan Padegaonkar" <[EMAIL PROTECTED]>
Cc: swtbot-users@lists.sourceforge.net
Date: Thursday, October 9, 2008, 3:00 PM

On 10-Oct-08, at 12:01 AM, Ketan Padegaonkar wrote:

>
> On 09-Oct-08, at 11:59 PM, Hans Schwaebli wrote:
>
>> Will you upgrade to JUnit 4 also? Would be nice.
>
>
> SWTBot is independent of Junit, so technically it should work :)
>
> If you're talking about PDE support for SWTBot, that's hard.
I'm not  
> sure if PDE supports junit 4. I'll be pushing for this in eclipse  
> 3.5, though.


I just tried a sample junit test with SWTBot and things work great!

public class FooTest {
        @Test public void thisFails() throws Exception {
                fail("");
        }
        @Test public void pass() throws Exception {
        }
}

-- Ketan



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse




      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to