Java テストから GUI アプリケーションを 2 回起動したいと考えています。@annotation
この場合、どのように使用すればよいでしょうか。
public class Toto {
@BeforeClass
public static void setupOnce() {
final Thread thread = new Thread() {
public void run() {
//launch appli
}
};
try {
thread.start();
} catch (Exception ex) { }
}
}
public class Test extends toto {
@Test
public void test() {
setuptonce();
closeAppli();
}
@test
public void test2()
{
setuptonce();
}
}
もう一度起動するには、どの注釈を使用すればよいですか? @afterclass
?