1 4 package com.tc.config.schema; 5 6 import org.apache.xmlbeans.XmlObject; 7 8 import com.terracottatech.config.System; 9 import com.terracottatech.config.TcConfigDocument.TcConfig; 10 11 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) throws Exception { 21 return config.getSystem(); 22 } 23 24 public void testConstruction() throws Exception { 25 try { 26 new NewSystemConfigObject(null); 27 fail("Didn't get NPE on no context"); 28 } catch (NullPointerException npe) { 29 } 31 } 32 } 33 | Popular Tags |