junit annotation
Posted
by lamisse
on Stack Overflow
See other posts from Stack Overflow
or by lamisse
Published on 2010-03-18T20:40:33Z
Indexed on
2010/03/18
20:41 UTC
Read the original article
Hit count: 346
junit4
I wish to launch the GUI appli 2 times from java test how should we use @annotation in this case? example : @BeforeClass public static void setupOnce() { final Thread thread = new Thread() { public void run() {
//launche appli
}
};
try {
thread.start();
when I call this function from test @test public void test(){ setuponce(); } to launch it a second time which annotation should I use? @afterclass? thanks
© Stack Overflow or respective owner