* Tests arrays (arguments, return types)
*/
@Test
public void test_arraysSetter() {
try {
ArraysSetter arraysSetter = new ArraysSetterServant();
TestRuntimeComponentService service = new TestRuntimeComponentService(arraysSetter);
Class<?> javaClass = ((JavaInterface)service.getInterfaceContract().getInterface()).getJavaClass();
InvocationProxy proxy = new ComponentInvocationProxy(service, service.getRuntimeWire(null), javaClass);
DynaCorbaServant servant = new DynaCorbaServant(proxy, Utils.getTypeId(javaClass));
String[] ids = new String[] {"IDL:org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetter:1.0"};
servant.setIds(ids);
java.lang.Object result = null;
bindServant(servant, "ArraysSetter");
ArraysSetter asClient = ArraysSetterHelper.narrow(bindReference("ArraysSetter"));
boolean[] bArr = new boolean[] {true, false};
result = (java.lang.Object)asClient.setBoolean(bArr);
assertTrue(areArraysEqual(bArr, result, bArr.length));
byte[] byArr = new byte[] {1, 2};
result = (java.lang.Object)asClient.setOctet(byArr);
assertTrue(areArraysEqual(byArr, result, byArr.length));
short[] shArr = new short[] {1, 2};
result = (java.lang.Object)asClient.setShort(shArr);
assertTrue(areArraysEqual(shArr, result, shArr.length));
int[] iArr = new int[] {1, 2};
result = (java.lang.Object)asClient.setLong(iArr);
assertTrue(areArraysEqual(iArr, result, iArr.length));
long[] lArr = new long[] {1, 2};
result = (java.lang.Object)asClient.setLongLong(lArr);
assertTrue(areArraysEqual(lArr, result, lArr.length));
String[] strArr = new String[] {"Some", "Test"};
result = (java.lang.Object)asClient.setString(strArr);
assertTrue(areArraysEqual(strArr, result, strArr.length));
char[] chArr = new char[] {'A', 'B'};
result = (java.lang.Object)asClient.setChar(chArr);
assertTrue(areArraysEqual(chArr, result, chArr.length));
float[] flArr = new float[] {1, 2};
result = (java.lang.Object)asClient.setFloat(flArr);
assertTrue(areArraysEqual(flArr, result, flArr.length));
double[] dbArr = new double[] {1, 2};
result = (java.lang.Object)asClient.setDouble(dbArr);
assertTrue(areArraysEqual(dbArr, result, dbArr.length));
} catch (Exception e) {
e.printStackTrace();
fail();