KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sape > carbon > services > instrumentation > statistics > test > TestStatisticsComponentImpl


1 package org.sape.carbon.services.instrumentation.statistics.test;
2
3 /**
4  * Created by IntelliJ IDEA.
5  * User: Administrator
6  * Date: Aug 29, 2003
7  * Time: 11:21:06 AM
8  * To change this template use Options | File Templates.
9  */

10 public class TestStatisticsComponentImpl implements TestStatisticsComponent {
11
12     public void succeed() {
13
14         try {
15             Thread.currentThread().sleep(10);
16         } catch (InterruptedException JavaDoc ie) {
17
18         }
19     }
20
21     public void fail() {
22         try {
23             Thread.currentThread().sleep(10);
24         } catch (InterruptedException JavaDoc ie) {
25
26         }
27         throw new UnsupportedOperationException JavaDoc("Intended test failure.");
28     }
29 }
30
Popular Tags