KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > test > TCTestCaseDisablingTest


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.test;
5
6
7 /**
8  * Unit test for {@link TCTestCase}. Simply checks that it can be disabled.
9  */

10 public class TCTestCaseDisablingTest extends TCTestCase {
11
12   public TCTestCaseDisablingTest() {
13     disableAllUntil("3000-01-01"); // basically, forever
14
}
15
16   public void testFails() throws Exception JavaDoc {
17     throw new Exception JavaDoc("This test should never run!");
18   }
19
20 }
Popular Tags