更新到cache

This commit is contained in:
Xiong Neng
2018-09-09 16:00:49 +08:00
parent 3195f26714
commit df914631a5
10 changed files with 123 additions and 43 deletions

View File

@ -15,7 +15,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.10.RELEASE</version>
<version>2.0.4.RELEASE</version>
<relativePath/>
</parent>

View File

@ -30,4 +30,4 @@ logging:
ROOT: INFO
com:
xncoding: DEBUG
file: E:/logs/app.log
file: D:/logs/app.log

View File

@ -9,8 +9,8 @@ import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.context.embedded.LocalServerPort;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.test.context.junit4.SpringRunner;
import static org.hamcrest.MatcherAssert.assertThat;
@ -98,15 +98,14 @@ public class ApplicationTests {
}
}
/**
* 方式4. 客户端代码生成方式
*/
@Test
public void cl4() {
CommonService_Service c = new CommonService_Service();
com.xncoding.webservice.client.User user = c.getCommonServiceImplPort().getUser("Tom");
assertThat(user.getName(), is("Tom"));
}
// /**
// * 方式4. 客户端代码生成方式
// */
// @Test
// public void cl4() {
// CommonService_Service c = new CommonService_Service();
// com.xncoding.webservice.client.User user = c.getCommonServiceImplPort().getUser("Tom");
// assertThat(user.getName(), is("Tom"));
// }
}