01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.config.schema;
05:
06: import com.tc.test.EqualityChecker;
07: import com.tc.test.TCTestCase;
08:
09: /**
10: * Unit test for {@link ConfigurationModel}.
11: */
12: public class ConfigurationModelTest extends TCTestCase {
13:
14: public void testAll() throws Exception {
15: Object[] arr1 = new Object[] { ConfigurationModel.DEVELOPMENT,
16: ConfigurationModel.PRODUCTION };
17: Object[] arr2 = new Object[] { ConfigurationModel.DEVELOPMENT,
18: ConfigurationModel.PRODUCTION };
19:
20: EqualityChecker.checkArraysForEquality(arr1, arr2);
21:
22: assertFalse(ConfigurationModel.DEVELOPMENT.equals(null));
23: assertFalse(ConfigurationModel.DEVELOPMENT
24: .equals("development"));
25: assertFalse(ConfigurationModel.DEVELOPMENT.equals("foo"));
26:
27: ConfigurationModel.DEVELOPMENT.toString();
28: ConfigurationModel.PRODUCTION.toString();
29: }
30:
31: }
|