test.jp.co.scs.mbench
クラス BenchmarkContainerTest

java.lang.Object
  上位を拡張 junit.framework.Assert
      上位を拡張 junit.framework.TestCase
          上位を拡張 test.jp.co.scs.mbench.BenchmarkContainerTest
すべての実装されたインタフェース:
junit.framework.Test

public class BenchmarkContainerTest
extends junit.framework.TestCase

作成者:
Tetsuro Ikeda

コンストラクタの概要
BenchmarkContainerTest()
           
 
メソッドの概要
 void testCleanTarget()
          The state must be "CLEANED" after the "clean" method.
 void testExecuteTarget()
          Data log must be in the queue of CVSAsynchronousDataWriter (although it ism't started yet) and the state must be "FINISHED", after the invocation of "execute" method.
 void testExecuteTarget2()
          The data log must be in the queue of CVSAsynchronousDataWriter and the state must be "THREAD_TERMINATED", if the "execute" method threw the "ThreadTerminateException" while executing.
 void testExecuteTarget3()
          Data log must be in the queue and the state must be "BENCHMARK_TERMINATED" if "execute" method threw BenchmarkTerminateException.
 void testInitTarget()
          The state must be "INITIALIZED" if the initialization was succeeded.
 void testInitTarget2()
          The state must be "BENCHMARK_TERMINATED" and BenchmarkTerminatedException must be thrown if the benchmark component couldn't be created by the FQCN.
 void testIsInitialized()
          This method must return false before the "initTarget" is invoked, and must return true after that.
 void testRun()
          The state must be "INITIALIZED" while synchronizer is locked, and the state must be "RUNNING" after the lock is released.
 
クラス junit.framework.TestCase から継承されたメソッド
countTestCases, getName, run, run, runBare, setName, toString
 
クラス junit.framework.Assert から継承されたメソッド
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

BenchmarkContainerTest

public BenchmarkContainerTest()
メソッドの詳細

testInitTarget

public void testInitTarget()
The state must be "INITIALIZED" if the initialization was succeeded.


testInitTarget2

public void testInitTarget2()
The state must be "BENCHMARK_TERMINATED" and BenchmarkTerminatedException must be thrown if the benchmark component couldn't be created by the FQCN.


testIsInitialized

public void testIsInitialized()
This method must return false before the "initTarget" is invoked, and must return true after that.


testExecuteTarget

public void testExecuteTarget()
Data log must be in the queue of CVSAsynchronousDataWriter (although it ism't started yet) and the state must be "FINISHED", after the invocation of "execute" method.


testExecuteTarget2

public void testExecuteTarget2()
The data log must be in the queue of CVSAsynchronousDataWriter and the state must be "THREAD_TERMINATED", if the "execute" method threw the "ThreadTerminateException" while executing.


testExecuteTarget3

public void testExecuteTarget3()
Data log must be in the queue and the state must be "BENCHMARK_TERMINATED" if "execute" method threw BenchmarkTerminateException.


testRun

public void testRun()
The state must be "INITIALIZED" while synchronizer is locked, and the state must be "RUNNING" after the lock is released.


testCleanTarget

public void testCleanTarget()
The state must be "CLEANED" after the "clean" method.