JFCUnit测试GUI的一个实例(代码篇)[5]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

 

            for (int i = 0; i < len; i++) {

                try {

                    index = i;

 

                    // Make the text field get the focus

                    pauseAWT();

                    inputText.setText(ctrlValue[i]);

                    inputText.requestFocus();

                    assertEquals("Set focus failed.", inputText.getText(),

                            ctrlValue[i]);

                    JFCTestHelper.disposeWindow(dialog, this);

                    okButton.requestFocus();

                    flushAWT();

 

                    // Gernate the report of the test

本文关键:JFCUnit测试GUI的一个实例(代码篇)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top