////
// template_type_spec
public void testSeqLong() {
IdltowsdlTypeTestSeqLong emptySeqLong = new IdltowsdlTypeTestSeqLong();
IdltowsdlTypeTestSeqLong zeroSeqLong = new IdltowsdlTypeTestSeqLong();
zeroSeqLong.getItem().add(0);
IdltowsdlTypeTestSeqLong singleSeqLong = new IdltowsdlTypeTestSeqLong();
singleSeqLong.getItem().add(Integer.MAX_VALUE);
IdltowsdlTypeTestSeqLong doubleSeqLong = new IdltowsdlTypeTestSeqLong();
doubleSeqLong.getItem().add(Integer.MAX_VALUE);
doubleSeqLong.getItem().add(Integer.MIN_VALUE);
IdltowsdlTypeTestSeqLong tripleSeqLong = new IdltowsdlTypeTestSeqLong();
tripleSeqLong.getItem().add(Integer.MIN_VALUE);
tripleSeqLong.getItem().add(0);
tripleSeqLong.getItem().add(Integer.MAX_VALUE);
IdltowsdlTypeTestSeqLong bigSeqLong = new IdltowsdlTypeTestSeqLong();
final int BIG_SEQ_LONG_SIZE = 1000;
for (int i = 0; i < BIG_SEQ_LONG_SIZE; i++) {
bigSeqLong.getItem().add(i);
}
assertTrue(emptySeqLong.equals(emptySeqLong));
IdltowsdlTypeTestSeqLong anotherEmptySeqLong = new IdltowsdlTypeTestSeqLong();
assertTrue(emptySeqLong.getItem().equals(anotherEmptySeqLong.getItem()));
IdltowsdlTypeTestSeqLong valueSets[][] = {
{emptySeqLong, emptySeqLong},
{emptySeqLong, zeroSeqLong},
{zeroSeqLong, singleSeqLong},
{singleSeqLong, doubleSeqLong},
{doubleSeqLong, tripleSeqLong},
{tripleSeqLong, bigSeqLong},
{bigSeqLong, emptySeqLong}
};
for (int i = 0; i < valueSets.length; i++) {
IdltowsdlTypeTestSeqLong in = valueSets[i][0];
Holder<IdltowsdlTypeTestSeqLong> inoutOrig = new Holder<IdltowsdlTypeTestSeqLong>(valueSets[i][1]);
Holder<IdltowsdlTypeTestSeqLong> inout = new Holder<IdltowsdlTypeTestSeqLong>(valueSets[i][1]);
Holder<IdltowsdlTypeTestSeqLong> out = new Holder<IdltowsdlTypeTestSeqLong>();
IdltowsdlTypeTestSeqLong ret = client.testSeqLong(in, inout, out);
assertTrue("testSeqLong(): Incorrect value for out param", inoutOrig.value.getItem().equals(out.value.getItem()));
assertTrue("testSeqLong(): Incorrect value for inout param", in.getItem().equals(inout.value.getItem()));
assertTrue("testSeqLong(): Incorrect return value", in.getItem().equals(ret.getItem()));
}
}