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 org.apache.xmlbeans.XmlObject;
07:
08: import com.terracottatech.config.System;
09: import com.terracottatech.config.TcConfigDocument.TcConfig;
10:
11: /**
12: * Unit/subsystem test for {@link NewSystemConfigObject}.
13: */
14: public class NewSystemConfigObjectTest extends ConfigObjectTestBase {
15:
16: public void setUp() throws Exception {
17: super .setUp(System.class);
18: }
19:
20: protected XmlObject getBeanFromTcConfig(TcConfig config)
21: throws Exception {
22: return config.getSystem();
23: }
24:
25: public void testConstruction() throws Exception {
26: try {
27: new NewSystemConfigObject(null);
28: fail("Didn't get NPE on no context");
29: } catch (NullPointerException npe) {
30: // ok
31: }
32: }
33: }
|