ts.tester.function.print
クラス ConsolePrinter

java.lang.Object
  上位を拡張 ts.tester.function.print.AbstractPrinter
      上位を拡張 ts.tester.function.print.ConsolePrinterBase
          上位を拡張 ts.tester.function.print.ConsolePrinter
すべての実装されたインタフェース:
CoveragePrinter, Printer

public class ConsolePrinter
extends ConsolePrinterBase
implements CoveragePrinter

機能試験結果をコンソール出力する ConsolePrinterBase クラスを、カバレッジ計測結果も出力するように拡張したクラス。

バージョン:
$Revision: 1.2 $, $Date: 2007/02/16 16:12:51 $
作成者:
佐藤隆之.

フィールドの概要
 
インタフェース ts.tester.coverage.CoveragePrinter から継承されたフィールド
NULL
 
コンストラクタの概要
ConsolePrinter()
          デフォルトコンストラクタ。
ConsolePrinter(java.io.PrintWriter writer)
          出力オブジェクトを引数にとるコンストラクタ。
 
メソッドの概要
 void entryClass(com.sun.jdi.ReferenceType refType)
          クラスの登録時に呼び出されるメソッド。
 void entryLine(com.sun.jdi.Location location)
          行の登録時に呼び出されるメソッド。
 void entryMethod(com.sun.jdi.Method method)
          メソッド呼び出し時に呼び出されるメソッド。
 void exitMethod(com.sun.jdi.Method method)
          メソッド終了時に呼び出されるメソッド。
 void passLine(com.sun.jdi.Location location)
          行の通過時に呼び出されるメソッド。
 void postCoverage(Coverage coverage)
          カバレッジ計測の後処理を実行する。
 void prepareCoverage(Coverage coverage)
          カバレッジ計測の準備処理を実行する。
protected  void printLineCoverage(LineCoverage coverage)
          行カバレッジの計測結果を表示する。
 
クラス ts.tester.function.print.ConsolePrinterBase から継承されたメソッド
caseEnded, caseStarted, checkOccured, createCaseResult, messageNoted, testEnded, testStarted, writer
 
クラス ts.tester.function.print.AbstractPrinter から継承されたメソッド
isStopped, setStopped, testStopped
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ConsolePrinter

public ConsolePrinter()
デフォルトコンストラクタ。


ConsolePrinter

public ConsolePrinter(java.io.PrintWriter writer)
出力オブジェクトを引数にとるコンストラクタ。

パラメータ:
writer - 出力オブジェクト。
例外:
java.lang.AssertionError - 引数がヌルの場合(デバッグモードのみ)。
メソッドの詳細

prepareCoverage

public void prepareCoverage(Coverage coverage)
カバレッジ計測の準備処理を実行する。

定義:
インタフェース CoveragePrinter 内の prepareCoverage
パラメータ:
coverage - カバレッジ計測オブジェクト。

postCoverage

public void postCoverage(Coverage coverage)
カバレッジ計測の後処理を実行する。

定義:
インタフェース CoveragePrinter 内の postCoverage
パラメータ:
coverage - カバレッジ計測オブジェクト。
例外:
java.lang.AssertionError - 引数がヌルの場合(デバッグモードのみ)。

entryClass

public void entryClass(com.sun.jdi.ReferenceType refType)
クラスの登録時に呼び出されるメソッド。

定義:
インタフェース CoveragePrinter 内の entryClass
パラメータ:
refType - 登録されたクラス又はインターフェイスを示す ReferenceTypeオブジェクト。
例外:
java.lang.AssertionError - 引数がヌルの場合(デバッグモードのみ)。

entryLine

public void entryLine(com.sun.jdi.Location location)
行の登録時に呼び出されるメソッド。

定義:
インタフェース CoveragePrinter 内の entryLine
パラメータ:
location - 登録された行を示すLocation オブジェクト。

entryMethod

public void entryMethod(com.sun.jdi.Method method)
メソッド呼び出し時に呼び出されるメソッド。

定義:
インタフェース CoveragePrinter 内の entryMethod
パラメータ:
method - 呼び出されたメソッドを示すMethod オブジェクト。

exitMethod

public void exitMethod(com.sun.jdi.Method method)
メソッド終了時に呼び出されるメソッド。

定義:
インタフェース CoveragePrinter 内の exitMethod
パラメータ:
method - 終了したメソッドを示すMethod オブジェクト。

passLine

public void passLine(com.sun.jdi.Location location)
行の通過時に呼び出されるメソッド。

定義:
インタフェース CoveragePrinter 内の passLine
パラメータ:
location - 通過した行を示すLocation オブジェクト。

printLineCoverage

protected void printLineCoverage(LineCoverage coverage)
行カバレッジの計測結果を表示する。

パラメータ:
coverage - LineCoverage オブジェクト。


Copyright (C) SATOH Takayuki All Rights Reserved.