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 InvalidServiceTest extends TestCase { 31 34 35 AxisConfiguration er; 36 37 public void testInvalidService() { 38 try { 39 String filename = "./target/test-resources/InvalidDeployment"; 40 ConfigurationContextFactory builder = new ConfigurationContextFactory(); 41 er = builder.buildConfigurationContext(filename).getAxisConfiguration(); 42 String msg = (String ) er.getFaulytServices().get("invalidService"); 43 if (msg == null || msg.equals("")) { 44 fail("this must failed gracefully with AxisFault ervice specifi module can not" + 45 "refer system pre defined phases"); 46 } 47 } catch (DeploymentException e) { 48 return; 49 } 50 } 51 } 52 | Popular Tags |