jp.ne.mki.wedge.pub.vfunit
クラス VfUnitXmlSuite

java.lang.Object
  上位を拡張 jp.ne.mki.wedge.pub.vfunit.VfUnitXmlSuite

public class VfUnitXmlSuite
extends java.lang.Object

VfUnitXML で記述された テストを TestSuite として構成する。 各種プロパティについては、以下の順番で読込を行います。

  1. VfUnit標準の読込 (但し XML_FILE_PATH は設定されません)
  2. 実行ディレクトリ直下に VfUnit.properties のファイルがあれば読込
  3. Systemプロパティに "VfUnit." から始まるKEYが指定されていたら、 KEYを "VfUnit." を除いた文字列 として 読込
実行構成パターンとしては以下があります。
  1. SystemプロパティでXML_FILE_PATHを渡し、それ以外は VfUnit標準を使用。
    実行時の引数に -DVfUnit.XML_FILE_PATH=sample/test.xml を指定して実行する など。
  2. VfUnit.properties ファイルを 実行ディレクトリ直下に配置し、 XML_FILE_PATH を記述する

バージョン:
2.0.0
作成者:
kanbayashi

コンストラクタの概要
VfUnitXmlSuite()
           
 
メソッドの概要
static void loadSystemProperty()
          SystemPropertyにVfUnitのプロパティが設定されていたら、 その値を VfUnitConstantsに反映する。
static void loadXml(TestSuite suite, org.xml.sax.InputSource input)
          XmlをLoad
static void loadXml(TestSuite suite, java.lang.String xmlPath)
          XMLをLoad。
static Test suite()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

VfUnitXmlSuite

public VfUnitXmlSuite()
メソッドの詳細

suite

public static Test suite()
戻り値:

loadSystemProperty

public static void loadSystemProperty()
SystemPropertyにVfUnitのプロパティが設定されていたら、 その値を VfUnitConstantsに反映する。 SystemPropertyのKEY は "VfUnit."から始まる文字を対象に 読込ます。


loadXml

public static void loadXml(TestSuite suite,
                           java.lang.String xmlPath)
XMLをLoad。 xmlPathがディレクトリ指定の場合には、その中の子ファイルまで 検索してテスト対象に追加する。

パラメータ:
suite -
xmlPath -
例外:
java.lang.Exception

loadXml

public static void loadXml(TestSuite suite,
                           org.xml.sax.InputSource input)
XmlをLoad

パラメータ:
suite -
input -
例外:
java.lang.Exception