这阵子在学习lua,今天看到string操作,书中描述string.gsub(sourceString, pattern, replacementString)返回一个字符串,但是我在实际操作中却发现,这个函数其实返回的是两部分内容,一部分是替换后的字符串,一部分是替换长度. myString = "my name is lucy, my phone numbre is 010-88993366." print(string.gsub(myString, "%d",
Test注解的两个属性:expected和timeout Junit的Test注解支持两个可选的参数expected和timeout.expected声明一个测试方法必须抛出一个异常.如果不抛出异常或抛出和expectd指定的异常类型不同的异常,则测试用例就会失败. 如下面这个测试用例就会通过: @Test(expected=IndexOutOfBoundsException.class) public void outOfBounds() { new ArrayList<Object>().
execption detail: Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.ja