01: package test.annotationtransformer;
02:
03: import org.testng.annotations.Test;
04:
05: /**
06: * This test will fail unless a time out transformer
07: * is applied to it.
08: *
09: * @author cbeust
10: *
11: */
12: @Test(timeOut=1000)
13: public class AnnotationTransformerClassSampleTest {
14:
15: public void one() {
16: try {
17: Thread.sleep(2000);
18: // ppp("FINISHED SLEEPING");
19: } catch (InterruptedException e) {
20: // ppp("WAS INTERRUPTED");
21: // ignore
22: }
23: }
24:
25: private void ppp(String string) {
26: System.out.println("[Transformer] " + string);
27: }
28:
29: }
|