12345678910111213141516171819202122232425262728293031323334 |
- package com.jtgh.yjpt.test;
- import java.net.URL;
- import org.junit.Test;
- import org.junit.runner.RunWith;
- import org.springframework.test.context.ContextConfiguration;
- import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
- import com.jtgh.yjpt.client.common.AuthHandlerResolver;
- import com.jtgh.yjpt.common.Constants;
- @RunWith(SpringJUnit4ClassRunner.class)
- @ContextConfiguration("/spring/applicationContext*.xml")
- public class AqsszxysscTest {
- @Test
- public void simpleProcessTest() {
- try {
- URL wsdlLocation = com.jtgh.yjpt.client.aqsszxys.AqsszxysService
- .getWsdlLocationByIp(Constants.WEBSERVICE_IP,
- Constants.WEBSERVICE_PORT);
- com.jtgh.yjpt.client.aqsszxys.AqsszxysService aqsszxysService = new com.jtgh.yjpt.client.aqsszxys.AqsszxysService(
- wsdlLocation,
- com.jtgh.yjpt.client.aqsszxys.AqsszxysService.AQSSZXYSSERVICE_QNAME);
- aqsszxysService
- .setHandlerResolver(new AuthHandlerResolver(
- com.jtgh.yjpt.client.aqsszxys.AqsszxysService.AQSSZXYSSERVICE_QNAME));
- aqsszxysService.getAqsszxysWebServicePort();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
|