junit annotation
- by lamisse
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