Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » CONSECUTIVES TEST
CONSECUTIVES TEST [message #17650] Mon, 26 January 2009 12:44 Go to next message
Luis Miguel is currently offline Luis Miguel
Messages: 31
Registered: July 2009
Member
Hello,
I am trying to test a plugin for eclipse. I have got a junit test case
with several methods (or test case). I want to test all but when a method
is tested, the following method continues and does not reset the
application.
Can I test all tests in a single run?

Thanks and regards.

Luis Miguel
Re: CONSECUTIVES TEST [message #17663 is a reply to message #17650] Mon, 26 January 2009 22:19 Go to previous message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Luis,

JUnit provides for setUp() and tearDown() methods, that allow you to
setup and clean up before each test case executes. That is probably what
you're looking for.

The JUnit site will have more information and examples on this:
http://junit.sourceforge.net/doc/testinfected/testing.htm

-- Ketan

On 26/1/09 23:14, Luis Miguel wrote:
> Hello,
> I am trying to test a plugin for eclipse. I have got a junit test case
> with several methods (or test case). I want to test all but when a
> method is tested, the following method continues and does not reset the
> application.
> Can I test all tests in a single run?
>
> Thanks and regards.
>
> Luis Miguel
>
Previous Topic:Finding n-th widget of any type
Next Topic:widgetWithId(String) -> widgetWithId(Object)
Goto Forum:
  


Current Time: Sat Jul 26 13:17:47 EDT 2014

Powered by FUDForum. Page generated in 0.01387 seconds