ArraysUnionsTuscanyServant.class.getMethod("passStringArray", new Class<?>[] {String[][].class})
.getAnnotations();
request.setOutputType(String[][].class, notes);
String[][] argument = { {"Hello", "World"}, {"Hi", "again"}};
request.addArgument(argument, notes);
DynaCorbaResponse response = request.invoke();
String[][] result = (String[][])response.getContent();
for (int i = 0; i < argument.length; i++) {
for (int j = 0; j < argument[i].length; j++) {
assertEquals(argument[i][j], result[i][j]);
}
}
} catch (Exception e) {
e.printStackTrace();
fail();
}
try {
DynaCorbaRequest request = new DynaCorbaRequest(refArraysUnions, "passTestStruct");
ArraysTestStruct arg = new ArraysTestStruct();
String[] field1 = {"Hello", "World"};
arg.field1 = field1;
int[][] field2 = { {4, 2, 2, 5}, {6, 12, 5, 8}};
arg.field2 = field2;
float[][][] field3 = { { {2, 6}, {2, 7}, {9, 3}, {4, 6}}, { {3, 7}, {6, 6}, {3, 5}, {6, 2}}};
arg.field3 = field3;
request.addArgument(arg);
request.setOutputType(ArraysTestStruct.class);
DynaCorbaResponse response = request.invoke();
ArraysTestStruct result = (ArraysTestStruct)response.getContent();
for (int i = 0; i < arg.field1.length; i++) {
assertEquals(arg.field1[i], result.field1[i]);
}
for (int i = 0; i < arg.field2.length; i++) {
for (int j = 0; j < arg.field2[i].length; j++) {