1 19 package org.netbeans.modules.xml.axi; 20 21 import junit.framework.*; 22 import org.netbeans.modules.xml.axi.AXIComponent.ComponentType; 23 import org.netbeans.modules.xml.axi.visitor.DeepAXITreeVisitor; 24 25 31 public class AXIModelPerf2Test extends AbstractTestCase { 32 33 public static final String TEST_XSD = "resources/hl7/fields.xsd"; 34 35 38 public AXIModelPerf2Test(String testName) { 39 super(testName, TEST_XSD, null); 40 } 41 42 public static Test suite() { 43 TestSuite suite = new TestSuite(AXIModelPerf2Test.class); 44 return suite; 45 } 46 47 public void testHealthCareSchema() throws Exception { 48 AXIModel model = getAXIModel(); 49 long startTime = System.currentTimeMillis(); 50 for(AXIComponent child : model.getRoot().getChildren()) { 51 child.getChildren(); 52 } 53 long endTime = System.currentTimeMillis(); 54 print("Time taken to traverse HL7 model upto 2 level: " + (endTime - startTime)); 55 } 56 57 } 58 | Popular Tags |