Ram binding;
try {
binding = new RamServiceLocator().getRam();
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertTrue("binding is null", binding != null);
try {
RamData[] input = new RamData[1];
input[0] = new RamData();
input[0].setBankInfoPaymentType("BIPT");
input[0].setBankInfoRequestType("BIRT");
input[0].setCallingClientPortNumber("CCPN");
input[0].setCallingClientUserIdentifier("CCUI");
CreditCard cc = new CreditCard();
cc.setName("NAME");
cc.setNumber("NUMBER");
cc.setExpires(new java.util.Date());
cc.setPostalCode("PC");
input[0].setCreditCard(cc);
Fee[] fees = new Fee[1];
fees[0] = new Fee();
fees[0].setAmount(20.0);
fees[0].setQuantity(50);
fees[0].setCode("CODE");
input[0].setFees(fees);
input[0].setMailRoomDate(new java.util.Date());
input[0].setSaleOtherPaymentTotalAmount(100.0);
input[0].setSalePostingReferenceText("SPRT");
Response[] output = binding.validate(input);
java.util.Date resDate = output[0].getAccountingDate();
java.util.Date now = new java.util.Date();
assertTrue("Time check failed. Result date = " + resDate + ", current time = " + now, resDate.before(now));
}
catch (java.rmi.RemoteException re) {
throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
}