jp.ne.mki.wedge.pub.vfunit.test.testcase
クラス VfUnitTestCase

java.lang.Object
  上位を拡張 JFCTestCase
      上位を拡張 jp.ne.mki.wedge.pub.vfunit.test.testcase.VfUnitTestCase
すべての実装されたインタフェース:
IVfUnitTest, IVfUnitTestCase
直系の既知のサブクラス:
VfUnitXmlTest

public class VfUnitTestCase
extends JFCTestCase
implements IVfUnitTestCase

VisualFrame用 TestCase抽象クラス コンポーネントの取得などを、物理名より取得します。 getTestHelper() の 各メソッドを使用してください。

作成者:
kanbayashi

コンストラクタの概要
VfUnitTestCase(java.lang.String name)
          コンストラクタ
 
メソッドの概要
 void addSetUpAction(IVfUnitTestAction action)
          テスト開始前に実行するActionを追加 JUnit3でいう startUp()
 void addTearDownAction(IVfUnitTestAction action)
          テスト終了後に実行するActionを追加 JUnit3でいう tearDown()
 void checkOptionPaneDialog(JFCTestCase testCase, javax.swing.JDialog dialog, java.lang.String windowTitle, java.lang.String[] buttonMessage, java.lang.String labelMessage)
          JOptionPaneダイアログの内容をチェックします。
 void closeDialog(JFCTestCase testCase, javax.swing.JDialog dialog, int buttonIndex)
          指定のDialogを 指定ボタンIndexを押す事で 閉じる
 java.lang.String getFrameName()
          テスト対象の画面名称を取得
 java.util.List<IVfUnitTestAction> getSetUpActions()
          テスト開始前に実行するActionを取得
 java.util.List<IVfUnitTestAction> getTearDownActions()
          テスト終了後に実行するActionを取得
 IComponentFinder getVfFinder()
          コンポーネントFinder取得
 ITestHelper getVfHelper()
          Helperを取得
 org.w3c.dom.Node getXmlNode()
          XMLで定義されているNodeを取得
 void instanceChildTest(org.w3c.dom.Node node)
          子テストのインスタンス
 void setFrameName(java.lang.String frameName)
          テスト対象の画面名称を設定
protected  void setUp()
           
 void setVfFinder(IComponentFinder finder)
          コンポーネントFiner設定
 void setVfHelper(ITestHelper helper)
          Helperを設定
 void setXmlNode(org.w3c.dom.Node node)
          XMLで定義されているNodeを設定
protected  void tearDown()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

VfUnitTestCase

public VfUnitTestCase(java.lang.String name)
コンストラクタ

メソッドの詳細

getVfHelper

public ITestHelper getVfHelper()
Helperを取得

定義:
インタフェース IVfUnitTestCase 内の getVfHelper
戻り値:

setVfHelper

public void setVfHelper(ITestHelper helper)
Helperを設定

定義:
インタフェース IVfUnitTestCase 内の setVfHelper
パラメータ:
helper -

getVfFinder

public IComponentFinder getVfFinder()
コンポーネントFinder取得

定義:
インタフェース IVfUnitTestCase 内の getVfFinder
戻り値:

setVfFinder

public void setVfFinder(IComponentFinder finder)
コンポーネントFiner設定

定義:
インタフェース IVfUnitTestCase 内の setVfFinder
パラメータ:
finder -

addSetUpAction

public void addSetUpAction(IVfUnitTestAction action)
テスト開始前に実行するActionを追加 JUnit3でいう startUp()

定義:
インタフェース IVfUnitTest 内の addSetUpAction
パラメータ:
action -

addTearDownAction

public void addTearDownAction(IVfUnitTestAction action)
テスト終了後に実行するActionを追加 JUnit3でいう tearDown()

定義:
インタフェース IVfUnitTest 内の addTearDownAction
パラメータ:
action -

getSetUpActions

public java.util.List<IVfUnitTestAction> getSetUpActions()
テスト開始前に実行するActionを取得

定義:
インタフェース IVfUnitTest 内の getSetUpActions
戻り値:

getTearDownActions

public java.util.List<IVfUnitTestAction> getTearDownActions()
テスト終了後に実行するActionを取得

定義:
インタフェース IVfUnitTest 内の getTearDownActions
戻り値:

setUp

protected void setUp()
              throws java.lang.Exception
例外:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
例外:
java.lang.Exception

instanceChildTest

public void instanceChildTest(org.w3c.dom.Node node)
子テストのインスタンス

定義:
インタフェース IVfUnitTest 内の instanceChildTest
パラメータ:
node -

setXmlNode

public void setXmlNode(org.w3c.dom.Node node)
XMLで定義されているNodeを設定

パラメータ:
node -

getXmlNode

public org.w3c.dom.Node getXmlNode()
XMLで定義されているNodeを取得

定義:
インタフェース IVfUnitTest 内の getXmlNode
戻り値:

setFrameName

public void setFrameName(java.lang.String frameName)
テスト対象の画面名称を設定

定義:
インタフェース IVfUnitTest 内の setFrameName
パラメータ:
frameName -

getFrameName

public java.lang.String getFrameName()
テスト対象の画面名称を取得

定義:
インタフェース IVfUnitTest 内の getFrameName
戻り値:

closeDialog

public void closeDialog(JFCTestCase testCase,
                        javax.swing.JDialog dialog,
                        int buttonIndex)
                 throws java.lang.Exception
指定のDialogを 指定ボタンIndexを押す事で 閉じる

パラメータ:
testCase -
dialog -
buttonIndex -
例外:
java.lang.Exception

checkOptionPaneDialog

public void checkOptionPaneDialog(JFCTestCase testCase,
                                  javax.swing.JDialog dialog,
                                  java.lang.String windowTitle,
                                  java.lang.String[] buttonMessage,
                                  java.lang.String labelMessage)
                           throws java.lang.Exception
JOptionPaneダイアログの内容をチェックします。 チェック対象はメッセージと、ボタン数、ボタン表示文字列です

パラメータ:
testCase -
owner -
windowTitle -
buttonMessage -
labelMessage -
例外:
java.lang.Exception