KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > LicenseTypeTest


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.config.schema;
5
6 import com.tc.test.EqualityChecker;
7 import com.tc.test.TCTestCase;
8
9 /**
10  * Unit test for {@link LicenseType}.
11  */

12 public class LicenseTypeTest extends TCTestCase {
13
14   public void testAll() throws Exception JavaDoc {
15     Object JavaDoc[] arr1 = new Object JavaDoc[] { LicenseType.TRIAL, LicenseType.PRODUCTION, LicenseType.NONE };
16     Object JavaDoc[] arr2 = new Object JavaDoc[] { LicenseType.TRIAL, LicenseType.PRODUCTION, LicenseType.NONE };
17
18     EqualityChecker.checkArraysForEquality(arr1, arr2);
19
20     assertFalse(LicenseType.TRIAL.equals(null));
21     assertFalse(LicenseType.TRIAL.equals("trial"));
22     assertFalse(LicenseType.TRIAL.equals("foo"));
23
24     LicenseType.TRIAL.toString();
25     LicenseType.PRODUCTION.toString();
26     LicenseType.NONE.toString();
27   }
28
29 }
30
Popular Tags