short[] shortArray = {(short) 30};
byte[] byteArray = {(byte) 1};
Short[] wrapperShortArray = {new Short((short) 23), new Short((short) 56)};
Byte[] wrapperByteArray = {new Byte((byte) 2), new Byte((byte) 15)};
BondInvestment sendValue = new BondInvestment();
sendValue.setOptions(callOptions);
sendValue.setOptions2(callOptions);
sendValue.setOptions3(callOptions[0]);
sendValue.setWrapperShortArray(wrapperShortArray);
sendValue.setWrapperByteArray(wrapperByteArray);
sendValue.setWrapperDouble(new Double(2323.232D));
sendValue.setWrapperFloat(new Float(23.023F));
sendValue.setWrapperInteger(new Integer(2093));
sendValue.setWrapperShort(new Short((short) 203));
sendValue.setWrapperByte(new Byte((byte) 20));
sendValue.setWrapperBoolean(new Boolean(true));
sendValue.setShortArray(shortArray);
sendValue.setByteArray(byteArray);
sendValue.setCallableDate(new Date(1012937861996L));
sendValue.setBondAmount(new BigDecimal("2675.23"));
sendValue.setPortfolioType(new BigInteger("2093"));
sendValue.setTradeExchange("NYSE");
sendValue.setFiftyTwoWeekHigh(45.012D);
sendValue.setLastTradePrice(87895.32F);
sendValue.setYield(5475L);
sendValue.setStockBeta(32);
sendValue.setDocType((short) 35);
sendValue.setTaxIndicator((byte) 3);
BondInvestment actual = binding.methodBondInvestmentInOut(sendValue);
assertEquals("The expected and actual values did not match.",
new Date(1013441507308L),
actual.getOptions()[0].getCallDate());
assertEquals("The expected and actual values did not match.",
new Date(1013441507328L),
actual.getOptions()[1].getCallDate());
assertEquals("The expected and actual values did not match.",
new Short((short) 33),
actual.getWrapperShortArray()[0]);
assertEquals("The expected and actual values did not match.",
new Short((short) 86),
actual.getWrapperShortArray()[1]);
assertEquals("The expected and actual values did not match.",
new Byte((byte) 4),
actual.getWrapperByteArray()[0]);
assertEquals("The expected and actual values did not match.",
new Byte((byte) 18),
actual.getWrapperByteArray()[1]);
assertEquals("The expected and actual values did not match.",
new Double(33.232D),
actual.getWrapperDouble());
assertEquals("The expected and actual values did not match.",
new Float(2.23F),
actual.getWrapperFloat());
assertEquals("The expected and actual values did not match.",
new Integer(3),
actual.getWrapperInteger());
assertEquals("The expected and actual values did not match.",
new Short((short) 2),
actual.getWrapperShort());
assertEquals("The expected and actual values did not match.",
new Byte((byte) 21),
actual.getWrapperByte());
assertEquals("The expected and actual values did not match.",
new Boolean(false),
actual.getWrapperBoolean());
assertEquals("The expected and actual values did not match.",
(short) 36,
actual.getShortArray()[0]);
assertEquals("The expected and actual values did not match.",
(byte) 7,
actual.getByteArray()[0]);
assertEquals("The expected and actual values did not match.",
new Date(1012937862997L),
actual.getCallableDate());
assertEquals("The expected and actual values did not match.",
new BigDecimal("2735.23"),
actual.getBondAmount());
assertEquals("The expected and actual values did not match.",
new BigInteger("21093"),
actual.getPortfolioType());
assertEquals("The expected and actual values did not match.",
new String("AMEX"),
actual.getTradeExchange());
assertEquals("The expected and actual values did not match.",
415.012D,
actual.getFiftyTwoWeekHigh(),
DOUBLE_DELTA);
assertEquals("The expected and actual values did not match.",
8795.32F,
actual.getLastTradePrice(),
FLOAT_DELTA);
assertEquals("The expected and actual values did not match.",
575L,
actual.getYield());
assertEquals("The expected and actual values did not match.",
3,
actual.getStockBeta());
assertEquals("The expected and actual values did not match.",
(short) 45,
actual.getDocType());
assertEquals("The expected and actual values did not match.",
(byte) 8,
actual.getTaxIndicator());
} catch (RemoteException re) {
fail("Remote Exception caught: " + re);
}