1 package org.apache.axis2.deployment; 2 3 import junit.framework.TestCase; 4 import org.apache.axis2.context.ConfigurationContextFactory; 5 import org.apache.axis2.engine.AxisConfiguration; 6 7 24 25 30 public class ModifiedConfigFileTest extends TestCase { 31 32 AxisConfiguration er; 33 34 public void testPhaseOrderchage(){ 35 try { 36 String filename = "./test-resources/deployment/BadConfigOrderChange"; 37 ConfigurationContextFactory builder = new ConfigurationContextFactory(); 38 er = builder.buildConfigurationContext(filename).getAxisConfiguration(); 39 fail("this must failed gracefully with DeploymentException \"Invalid System predefined " + 40 "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\""); 41 } catch (DeploymentException e) { 42 43 } 44 } 45 46 } 47 | Popular Tags |