java - How do I fix the "No window was shown" error in uispecj4? - Stack Overflow

I've been trying to get tests running for my project but every time I run it it gives me an errorp

I've been trying to get tests running for my project but every time I run it it gives me an error

    protected void setUp() throws Exception {
        super.setUp();
        setAdapter(new MainClassAdapter(Login.class));

        Window window = getMainWindow();
    }

This is the code for my setup, it has an error when it tries to getMainWindow(). It's a maven project, the login class is setup and is running, here is the code that displays the window:

    public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Login().setVisible(true); System.out.println("window showingg");
            }
        });
    }

Could anyone help me figure out what's going on? Thanks

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745662344a4638912.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信