KickJava   Java API By Example, From Geeks To Geeks.

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


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 ConfigurationModel}.
11  */

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