jp.ne.mki.wedge.pub.vfunit.tag
クラス AbstractProcess

java.lang.Object
  上位を拡張 jp.ne.mki.wedge.pub.vfunit.tag.AbstractProcess
すべての実装されたインタフェース:
IReportTestCase, IVfUnitProcess
直系の既知のサブクラス:
AbstractDatabaseOperation, ActiveWindow, AssertBackGroundColor, AssertBorder, AssertButtonSelected, AssertCaretColor, AssertCompRefrectMethod, AssertDbUnitFileSet, AssertDialogButtonText, AssertDialogExist, AssertDialogNotExist, AssertDisabledTextColor, AssertEditabled, AssertEnabled, AssertFont, AssertForeGroundColor, AssertHasFocus, AssertImageIcon, AssertItem, AssertItemSize, AssertOpaque, AssertRowCount, AssertSelectedIndex, AssertSplitDivider, AssertStatusBarMessage, AssertTableCellEditorClass, AssertTableCellRendererClass, AssertTableColumnSize, AssertTableEditing, AssertTableEditorTextPosition, AssertTableHeaderValue, AssertTableSelectedCell, AssertTextComponent, AssertTextPosition, AssertToolTipText, AssertVfCurrentComponent, AssertVisibled, AssertWindowExist, AssertWindowNotExist, ClearText, Click, ClickScrollPaneOfTable, ClickXyPosition, CloseDialog, CloseWindow, EditStopTable, EditTable, MoveTableColumnByDrag, NextFocus, PressKey, PressOperationKey, PreviousFocus, ResizeTableColumnByDrag, SendString, SetString, Sleep, SqlExecute

public abstract class AbstractProcess
extends java.lang.Object
implements IVfUnitProcess

Process抽象クラス

作成者:
kanbayashi

フィールドの概要
protected static java.lang.String MESSAGE_NO_COMP
           
protected static java.lang.String MESSAGE_NO_ITEM
           
 
インタフェース jp.ne.mki.wedge.pub.vfunit.tag.IVfUnitProcess から継承されたフィールド
BUTTON_INDEX, CLASS, CLICK_COUNT, COLUMN, COMP, EXPECTED, FROM, INDEX, KEY_CODE, KEY_NAME, LABEL, MODIFIERS, NAME, ROW, STATUS_ERROR, STATUS_FAILURE, STATUS_NO_EXEC, STATUS_SUCCESS, TIME, TITLE, TO, VALUE, WINDOW
 
コンストラクタの概要
AbstractProcess()
           
 
メソッドの概要
protected  void assertEquals(boolean expected, boolean actual)
          Asserts that two booleans are equal.
protected  void assertEquals(byte expected, byte actual)
          Asserts that two bytes are equal.
protected  void assertEquals(char expected, char actual)
          Asserts that two chars are equal.
protected  void assertEquals(double expected, double actual, double delta)
          Asserts that two doubles are equal concerning a delta.
protected  void assertEquals(float expected, float actual, float delta)
          Asserts that two floats are equal concerning a delta.
protected  void assertEquals(int expected, int actual)
          Asserts that two ints are equal.
protected  void assertEquals(long expected, long actual)
          Asserts that two longs are equal.
protected  void assertEquals(java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects are equal.
protected  void assertEquals(short expected, short actual)
          Asserts that two shorts are equal.
protected  void assertEquals(java.lang.String message, boolean expected, boolean actual)
          Asserts that two booleans are equal.
protected  void assertEquals(java.lang.String message, byte expected, byte actual)
          Asserts that two bytes are equal.
protected  void assertEquals(java.lang.String message, char expected, char actual)
          Asserts that two chars are equal.
protected  void assertEquals(java.lang.String message, double expected, double actual, double delta)
          Asserts that two doubles are equal concerning a delta.
protected  void assertEquals(java.lang.String message, float expected, float actual, float delta)
          Asserts that two floats are equal concerning a positive delta.
protected  void assertEquals(java.lang.String message, int expected, int actual)
          Asserts that two ints are equal.
protected  void assertEquals(java.lang.String message, long expected, long actual)
          Asserts that two longs are equal.
protected  void assertEquals(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects are equal.
protected  void assertEquals(java.lang.String message, short expected, short actual)
          Asserts that two shorts are equal.
protected  void assertEquals(java.lang.String expected, java.lang.String actual)
          Asserts that two Strings are equal.
protected  void assertEquals(java.lang.String message, java.lang.String expected, java.lang.String actual)
          Asserts that two Strings are equal.
protected  void assertFalse(boolean condition)
          Asserts that a condition is false.
protected  void assertFalse(java.lang.String message, boolean condition)
          Asserts that a condition is false.
protected  void assertNotNull(java.lang.Object object)
          Asserts that an object isn't null.
protected  void assertNotNull(java.lang.String message, java.lang.Object object)
          Asserts that an object isn't null.
protected  void assertNotSame(java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects do not refer to the same object.
protected  void assertNotSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects do not refer to the same object.
protected  void assertNull(java.lang.Object object)
          Asserts that an object is null.
protected  void assertNull(java.lang.String message, java.lang.Object object)
          Asserts that an object is null.
protected  void assertSame(java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects refer to the same object.
protected  void assertSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects refer to the same object.
protected  void assertTrue(boolean condition)
          Asserts that a condition is true.
protected  void assertTrue(java.lang.String message, boolean condition)
          Asserts that a condition is true.
protected  void fail()
          Fails a test with no message.
protected  void fail(java.lang.String message)
          Fails a test with the given message.
protected  void failNotEquals(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
           
protected  void failNotSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
           
protected  void failSame(java.lang.String message)
           
protected  java.lang.String format(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
           
 java.lang.String getAttribute(java.lang.String attributeName, java.lang.String defaultValue)
          XMLの属性の値を取得 ノードが無いなどの場合は デフォルト値(第三引数) を返す
 boolean getAttributeBoolean(java.lang.String attributeName, boolean defaultValue)
          XML属性の値をbooleanで取得 設定が無かった場合には 第二引数のデフォルト値が返ります。
 int getAttributeInt(java.lang.String attributeName, int defaultValue)
          XML属性の値を数値で取得 設定が無かった場合には 第二引数のデフォルト値が返ります。
 long getAttributeLong(java.lang.String attributeName, int defaultValue)
          XML属性の値をlongで取得 設定が無かった場合には 第二引数のデフォルト値が返ります。
 java.lang.String getAttributeNN(java.lang.String attributeName)
          XMLの属性の値を取得 指定が無い場合には 空文字で返ります。
protected  java.lang.String getComponentProcessString(java.lang.String attributeName)
          処理内容を文字列として取得/ コンポーネントの文字列取得
 javax.swing.text.JTextComponent getInnerTextComponent(java.awt.Component comp)
          指定コンポーネントのエディタなどから JTextComponentを取得 取得できるものが無い場合には nullが返ります。
 VfUnitXmlTest getParentTest()
          実行元テストケース取得
 java.lang.String getProcessString()
          処理内容を文字列として取得
 java.awt.Window getProcessWindow(java.awt.Window defaultWindow)
          処理対象となる画面を取得する 属性に 「window」が指定されていた場合には その画面を取得。
 java.awt.Window getProcessWindow(java.awt.Window defaultWindow, boolean existsCheck)
          処理対象となる画面を取得する 属性に 「window」が指定されていた場合には その画面を取得。
 java.lang.String getStatus()
          ステータスを取得
 java.lang.Throwable getThrown()
          エラーオブジェクトを取得
 long getTime()
          処理にかかった時間を取得
 IComponentFinder getVfFinder()
          ComponentFinderを取得
 org.w3c.dom.Node getXmlNode()
          対象となる XMLNode を取得
 void setParentTest(VfUnitXmlTest test)
          実行元のテストケースを設定
 void setStatus(java.lang.String status)
          ステータスを設定
 void setThrown(java.lang.Throwable thrown)
          エラーオブジェクトを設定
 void setTime(long time)
          処理にかかった時間を設定
 void setXmlNode(org.w3c.dom.Node node)
          対象となる XMLNode を設定
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.ne.mki.wedge.pub.vfunit.tag.IVfUnitProcess から継承されたメソッド
processElement
 

フィールドの詳細

MESSAGE_NO_COMP

protected static final java.lang.String MESSAGE_NO_COMP
関連項目:
定数フィールド値

MESSAGE_NO_ITEM

protected static final java.lang.String MESSAGE_NO_ITEM
関連項目:
定数フィールド値
コンストラクタの詳細

AbstractProcess

public AbstractProcess()
メソッドの詳細

setXmlNode

public void setXmlNode(org.w3c.dom.Node node)
対象となる XMLNode を設定

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

getXmlNode

public org.w3c.dom.Node getXmlNode()
対象となる XMLNode を取得

戻り値:

getAttributeNN

public java.lang.String getAttributeNN(java.lang.String attributeName)
XMLの属性の値を取得 指定が無い場合には 空文字で返ります。

パラメータ:
attributeName -
戻り値:

getAttributeInt

public int getAttributeInt(java.lang.String attributeName,
                           int defaultValue)
XML属性の値を数値で取得 設定が無かった場合には 第二引数のデフォルト値が返ります。

パラメータ:
attributeName -
defaultValue -
戻り値:

getAttributeLong

public long getAttributeLong(java.lang.String attributeName,
                             int defaultValue)
XML属性の値をlongで取得 設定が無かった場合には 第二引数のデフォルト値が返ります。

パラメータ:
attributeName -
defaultValue -
戻り値:

getAttribute

public java.lang.String getAttribute(java.lang.String attributeName,
                                     java.lang.String defaultValue)
XMLの属性の値を取得 ノードが無いなどの場合は デフォルト値(第三引数) を返す

パラメータ:
attributeName -
defaultValue -
戻り値:
String

getAttributeBoolean

public boolean getAttributeBoolean(java.lang.String attributeName,
                                   boolean defaultValue)
XML属性の値をbooleanで取得 設定が無かった場合には 第二引数のデフォルト値が返ります。

パラメータ:
attributeName -
defaultValue -
戻り値:
boolean

getVfFinder

public IComponentFinder getVfFinder()
ComponentFinderを取得

戻り値:
VfComponentFinder

setParentTest

public void setParentTest(VfUnitXmlTest test)
実行元のテストケースを設定

定義:
インタフェース IVfUnitProcess 内の setParentTest
パラメータ:
testCase -

getParentTest

public VfUnitXmlTest getParentTest()
実行元テストケース取得

定義:
インタフェース IVfUnitProcess 内の getParentTest
戻り値:

getInnerTextComponent

public javax.swing.text.JTextComponent getInnerTextComponent(java.awt.Component comp)
指定コンポーネントのエディタなどから JTextComponentを取得 取得できるものが無い場合には nullが返ります。

パラメータ:
comp -
戻り値:

getProcessWindow

public java.awt.Window getProcessWindow(java.awt.Window defaultWindow)
                                 throws JFCTestException
処理対象となる画面を取得する 属性に 「window」が指定されていた場合には その画面を取得。 指定が無かった場合には、第二引数の defaultWindow を返します。 「window」の指定があったが、画面が取得できなかった場合には Assertエラー が発生します。

パラメータ:
defaultWindow -
戻り値:
例外:
JFCTestException

getProcessWindow

public java.awt.Window getProcessWindow(java.awt.Window defaultWindow,
                                        boolean existsCheck)
                                 throws JFCTestException
処理対象となる画面を取得する 属性に 「window」が指定されていた場合には その画面を取得。 指定が無かった場合には、第二引数の defaultWindow を返します。 「window」の指定があったが、画面が取得できなかった場合には Assertエラー が発生します。

パラメータ:
defaultWindow -
existsCheck -
戻り値:
例外:
JFCTestException

getProcessString

public java.lang.String getProcessString()
処理内容を文字列として取得

定義:
インタフェース IReportTestCase 内の getProcessString
戻り値:

getComponentProcessString

protected java.lang.String getComponentProcessString(java.lang.String attributeName)
処理内容を文字列として取得/ コンポーネントの文字列取得

パラメータ:
attributeName -
戻り値:

assertTrue

protected void assertTrue(java.lang.String message,
                          boolean condition)
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.


assertTrue

protected void assertTrue(boolean condition)
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.


assertFalse

protected void assertFalse(java.lang.String message,
                           boolean condition)
Asserts that a condition is false. If it isn't it throws an AssertionFailedError with the given message.


assertFalse

protected void assertFalse(boolean condition)
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.


fail

protected void fail(java.lang.String message)
Fails a test with the given message.


fail

protected void fail()
Fails a test with no message.


assertEquals

protected void assertEquals(java.lang.String message,
                            java.lang.Object expected,
                            java.lang.Object actual)
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.


assertEquals

protected void assertEquals(java.lang.Object expected,
                            java.lang.Object actual)
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.


assertEquals

protected void assertEquals(java.lang.String message,
                            java.lang.String expected,
                            java.lang.String actual)
Asserts that two Strings are equal.


assertEquals

protected void assertEquals(java.lang.String expected,
                            java.lang.String actual)
Asserts that two Strings are equal.


assertEquals

protected void assertEquals(java.lang.String message,
                            double expected,
                            double actual,
                            double delta)
Asserts that two doubles are equal concerning a delta. If they are not an AssertionFailedError is thrown with the given message. If the expected value is infinity then the delta value is ignored.


assertEquals

protected void assertEquals(double expected,
                            double actual,
                            double delta)
Asserts that two doubles are equal concerning a delta. If the expected value is infinity then the delta value is ignored.


assertEquals

protected void assertEquals(java.lang.String message,
                            float expected,
                            float actual,
                            float delta)
Asserts that two floats are equal concerning a positive delta. If they are not an AssertionFailedError is thrown with the given message. If the expected value is infinity then the delta value is ignored.


assertEquals

protected void assertEquals(float expected,
                            float actual,
                            float delta)
Asserts that two floats are equal concerning a delta. If the expected value is infinity then the delta value is ignored.


assertEquals

protected void assertEquals(java.lang.String message,
                            long expected,
                            long actual)
Asserts that two longs are equal. If they are not an AssertionFailedError is thrown with the given message.


assertEquals

protected void assertEquals(long expected,
                            long actual)
Asserts that two longs are equal.


assertEquals

protected void assertEquals(java.lang.String message,
                            boolean expected,
                            boolean actual)
Asserts that two booleans are equal. If they are not an AssertionFailedError is thrown with the given message.


assertEquals

protected void assertEquals(boolean expected,
                            boolean actual)
Asserts that two booleans are equal.


assertEquals

protected void assertEquals(java.lang.String message,
                            byte expected,
                            byte actual)
Asserts that two bytes are equal. If they are not an AssertionFailedError is thrown with the given message.


assertEquals

protected void assertEquals(byte expected,
                            byte actual)
Asserts that two bytes are equal.


assertEquals

protected void assertEquals(java.lang.String message,
                            char expected,
                            char actual)
Asserts that two chars are equal. If they are not an AssertionFailedError is thrown with the given message.


assertEquals

protected void assertEquals(char expected,
                            char actual)
Asserts that two chars are equal.


assertEquals

protected void assertEquals(java.lang.String message,
                            short expected,
                            short actual)
Asserts that two shorts are equal. If they are not an AssertionFailedError is thrown with the given message.


assertEquals

protected void assertEquals(short expected,
                            short actual)
Asserts that two shorts are equal.


assertEquals

protected void assertEquals(java.lang.String message,
                            int expected,
                            int actual)
Asserts that two ints are equal. If they are not an AssertionFailedError is thrown with the given message.


assertEquals

protected void assertEquals(int expected,
                            int actual)
Asserts that two ints are equal.


assertNotNull

protected void assertNotNull(java.lang.Object object)
Asserts that an object isn't null.


assertNotNull

protected void assertNotNull(java.lang.String message,
                             java.lang.Object object)
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.


assertNull

protected void assertNull(java.lang.Object object)
Asserts that an object is null.


assertNull

protected void assertNull(java.lang.String message,
                          java.lang.Object object)
Asserts that an object is null. If it is not an AssertionFailedError is thrown with the given message.


assertSame

protected void assertSame(java.lang.String message,
                          java.lang.Object expected,
                          java.lang.Object actual)
Asserts that two objects refer to the same object. If they are not an AssertionFailedError is thrown with the given message.


assertSame

protected void assertSame(java.lang.Object expected,
                          java.lang.Object actual)
Asserts that two objects refer to the same object. If they are not the same an AssertionFailedError is thrown.


assertNotSame

protected void assertNotSame(java.lang.String message,
                             java.lang.Object expected,
                             java.lang.Object actual)
Asserts that two objects do not refer to the same object. If they do refer to the same object an AssertionFailedError is thrown with the given message.


assertNotSame

protected void assertNotSame(java.lang.Object expected,
                             java.lang.Object actual)
Asserts that two objects do not refer to the same object. If they do refer to the same object an AssertionFailedError is thrown.


failSame

protected void failSame(java.lang.String message)

failNotSame

protected void failNotSame(java.lang.String message,
                           java.lang.Object expected,
                           java.lang.Object actual)

failNotEquals

protected void failNotEquals(java.lang.String message,
                             java.lang.Object expected,
                             java.lang.Object actual)

format

protected java.lang.String format(java.lang.String message,
                                  java.lang.Object expected,
                                  java.lang.Object actual)

getThrown

public java.lang.Throwable getThrown()
エラーオブジェクトを取得

定義:
インタフェース IVfUnitProcess 内の getThrown
戻り値:

setThrown

public void setThrown(java.lang.Throwable thrown)
エラーオブジェクトを設定

定義:
インタフェース IVfUnitProcess 内の setThrown
パラメータ:
thrown -

getTime

public long getTime()
処理にかかった時間を取得

定義:
インタフェース IVfUnitProcess 内の getTime
戻り値:

setTime

public void setTime(long time)
処理にかかった時間を設定

定義:
インタフェース IVfUnitProcess 内の setTime
パラメータ:
time -

getStatus

public java.lang.String getStatus()
ステータスを取得

定義:
インタフェース IVfUnitProcess 内の getStatus

setStatus

public void setStatus(java.lang.String status)
ステータスを設定

定義:
インタフェース IVfUnitProcess 内の setStatus
パラメータ:
status -