我想测试部署在JBoss 7上并使用Eclipse上的maven创建的XML Web Services(JAX-WS),因此我创建了一个Junit测试。 这是我的Junit测试
protected override void OnSizeAllocated(double width, double height)
{
base.OnSizeAllocated(width, height);
if (width != this.width || height != this.height)
{
this.width = width;
this.height = height;
if (Width > Height)
{
//your grid
}
else
{
//your grid
}
}
}
这是班级
public class IberiaWSTest {
@Test
public void testListPerson() throws Exception {
IberiaWSBindingStub stub = new IberiaWSBindingStub(new URL("http://iberia.test.buildizz.com/IberiaWSPort"),null);
}
}
和
public class IberiaWSBindingStub extends org.apache.axis.client.Stub implements IberiaWS_PortType {
private java.util.Vector cachedSerClasses = new java.util.Vector();
private java.util.Vector cachedSerQNames = new java.util.Vector();
private java.util.Vector cachedSerFactories = new java.util.Vector();
private java.util.Vector cachedDeserFactories = new java.util.Vector();
static org.apache.axis.description.OperationDesc [] _operations;
static {
_operations = new org.apache.axis.description.OperationDesc[7];
_initOperationDesc1();
}
..
}
即使在logggin的任何地方都没有引用,我在运行Junit测试时遇到了这个错误
public interface IberiaWS_PortType extends java.rmi.Remote {
public int createPerson(IberiaPerson arg0) throws java.rmi.RemoteException;
public .String arg0) throws java.rmi.RemoteException;
public com.iberia.iberiafleet.webservice.String arg0) throws java.rmi.RemoteException;
public boolean isConnected() throws java.rmi.RemoteException;
public com.iberia.iberiafleet.webservice.s java.rmi.RemoteException;
public boolean login(java.lang.String arg0, java.lang.String arg1) throws java.rmi.RemoteException;
public int updatePerson(com.iberia.iberiafleet.webservice.i.RemoteException;
}