Test cases: |
No |
Case Name |
Check |
NoGood |
KnownBug |
Description |
Remark |
|
1 |
add_and_kill |
4 |
0 |
0 |
Lifeの追加と破棄。
|
0 empty.
0 incomplete.
|
2 |
add_and_kill_1 |
1 |
0 |
0 |
引数がヌルの場合。
|
0 empty.
0 incomplete.
|
3 |
add_and_kill_2 |
1 |
0 |
0 |
killした後に再度addした場合
|
0 empty.
0 incomplete.
|
4 |
causeErrorInLifetime |
1 |
0 |
0 |
Lifeオブジェクトが例外をスローする場合。
|
0 empty.
0 incomplete.
|
5 |
causeErrorInLifetime_wasBorn |
3 |
0 |
0 |
wasBornで例外が発生した場合。
|
0 empty.
0 incomplete.
|
6 |
causeErrorInLifetime_willDie |
3 |
0 |
0 |
willDieで例外が発生した場合。
|
0 empty.
0 incomplete.
|
7 |
causeErrorInPeriodicEventfulLife |
22 |
0 |
0 |
周期的に呼ばれるLife#happensでエラーがスローされた場合。
|
0 empty.
0 incomplete.
|
8 |
causeErrorInScheduledEventfulLife |
16 |
0 |
0 |
時刻指定で呼ばれるLife#happensでエラーがスローされた場合。
|
0 empty.
0 incomplete.
|
9 |
constructor |
1 |
0 |
0 |
デフォルト・コンストラクタの確認。
|
0 empty.
0 incomplete.
|
10 |
enumeration |
10 |
0 |
0 |
Lifeの列挙
|
0 empty.
0 incomplete.
|
11 |
enumeration_1 |
7 |
0 |
0 |
Life.willDieメソッドでLifeを列挙
|
0 empty.
0 incomplete.
|
12 |
enumeration_2 |
7 |
0 |
0 |
Life.willDieメソッドで例外発生したときにLifeを列挙
|
0 empty.
0 incomplete.
|
13 |
getLifeMethod |
2 |
0 |
0 |
Lifeオブジェクトのメソッドを取得
|
0 empty.
0 incomplete.
|
14 |
getLifeMethod_1 |
2 |
0 |
0 |
引数がヌルの場合。
|
0 empty.
0 incomplete.
|
15 |
getLifeMethod_2 |
1 |
0 |
0 |
存在しないメソッド名を指定した場合。
|
0 empty.
0 incomplete.
|
16 |
oneTimeEvent |
1 |
0 |
0 |
一回だけのイベントを持ったLife (次の45秒に起動)
|
0 empty.
0 incomplete.
|
17 |
periodicEventfulLife |
1 |
0 |
0 |
周期的なイベントを持ったLife
|
0 empty.
0 incomplete.
|
18 |
periodicEventfulLife_1 |
1 |
0 |
0 |
複数のPeriodicEventfulLifeを同時に実行。
|
0 empty.
0 incomplete.
|
19 |
scheduledEventfulLife |
3 |
0 |
0 |
時刻指定のイベントを持ったLife(毎分20秒に起動)
|
0 empty.
0 incomplete.
|
20 |
scheduledEventfulLife_1 |
1 |
0 |
0 |
複数のScheduledEventfulLifeが同時に実行。
|
0 empty.
0 incomplete.
|
21 |
whenGetIntervalOfLifeCauseErrorInSetupPeriodicEvent |
1 |
0 |
0 |
|
0 empty.
0 incomplete.
|
22 |
whenGetNextTimeOfLifeCauseErrorInSetupScheduledEvent |
5 |
0 |
0 |
|
0 empty.
0 incomplete.
|
|
Total |
94 |
0 |
0 |
0 cases are empty.
0 cases are incomplete.
|
|
|
Coverage: |
No |
Method Name |
Lines |
Passed |
Coverage |
|
|
1
| ts.util.lifetime.Lifetime
|
1.1 |
<init> |
4 |
4 |
100 % |
|
1.2 |
<clinit> |
1 |
1 |
100 % |
|
1.3 |
setupScheduledEvent |
2 |
2 |
100 % |
|
1.4 |
getLifeMethod |
3 |
3 |
100 % |
|
1.5 |
kill |
10 |
10 |
100 % |
|
1.6 |
add |
11 |
11 |
100 % |
|
1.7 |
setupPeriodicEvent |
8 |
6 |
75 % |
|
1.8 |
enumeration |
1 |
1 |
100 % |
|
1.9 |
access$100 |
1 |
1 |
100 % |
|
1.10 |
catchException |
1 |
1 |
100 % |
|
1.11 |
finalize |
3 |
3 |
100 % |
|
1.12 |
createLifeList |
1 |
1 |
100 % |
|
1.13 |
access$000 |
1 |
1 |
100 % |
|
2
| ts.util.lifetime.Lifetime$1
|
2.1 |
run |
5 |
5 |
100 % |
|
2.2 |
<init> |
1 |
1 |
100 % |
|
3
| ts.util.lifetime.Lifetime$1ScheduleThread
|
3.1 |
<init> |
1 |
1 |
100 % |
|
3.2 |
run |
13 |
13 |
100 % |
|
4
| ts.util.lifetime.Lifetime$1ScheduleThread$1
|
4.1 |
run |
6 |
6 |
100 % |
|
4.2 |
<init> |
1 |
1 |
100 % |
|
|
Total Coverage |
70 |
68 |
97 % |
|
|
|
Unpassed Lines: |
204 205 |