new boolean[][] { new boolean[] { true } },
new Object[][] {
new Object[] { new Any(Type.BOOLEAN, Boolean.TRUE) } },
new TestEnum[] { TestEnum.TWO },
new TestStruct[] { new TestStruct(10) },
new TestPolyStruct[] { new TestPolyStruct(Boolean.TRUE) },
new TestPolyStruct[] {
new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE)) },
new Object[] { null },
TestEnum.TWO,
new TestStruct(10),
new TestPolyStruct(Boolean.TRUE),
new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE)),
null);
Constructors.create2(context, new Object[] {
Boolean.TRUE,
new Byte(Byte.MIN_VALUE),
new Short(Short.MIN_VALUE),
new Any(Type.UNSIGNED_SHORT, new Short((short) -1)),
new Integer(Integer.MIN_VALUE),
new Any(Type.UNSIGNED_LONG, new Integer(-1)),
new Long(Long.MIN_VALUE),
new Any(Type.UNSIGNED_HYPER, new Long(-1L)),
new Float(0.123f),
new Double(0.456),
new Character('X'),
"test",
Type.ANY,
new Any(Type.BOOLEAN, Boolean.TRUE),
new boolean[] { true },
new byte[] { Byte.MIN_VALUE },
new short[] { Short.MIN_VALUE },
new Any(
new Type("[]unsigned short"), new short[] { (short) -1 }),
new int[] { Integer.MIN_VALUE },
new Any(new Type("[]unsigned long"), new int[] { -1 }),
new long[] { Long.MIN_VALUE },
new Any(new Type("[]unsigned hyper"), new long[] { -1L }),
new float[] { 0.123f },
new double[] { 0.456 },
new char[] { 'X' },
new String[] { "test" },
new Type[] { Type.ANY },
new Any(new Type("[]any"), new Boolean[] { Boolean.TRUE }),
new boolean[][] { new boolean[] { true } },
new Object[][] {
new Object[] { new Any(Type.BOOLEAN, Boolean.TRUE) } },
new TestEnum[] { TestEnum.TWO },
new TestStruct[] { new TestStruct(10) },
new Any(
new Type(
"[]test.testtools.bridgetest.TestPolyStruct<boolean>"),
new TestPolyStruct[] { new TestPolyStruct(Boolean.TRUE) }),
new Any(
new Type("[]test.testtools.bridgetest.TestPolyStruct<any>"),
new TestPolyStruct[] {
new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE))
}),
new XInterface[] { null },
TestEnum.TWO,
new TestStruct(10),
new Any(
new Type(
"test.testtools.bridgetest.TestPolyStruct<boolean>"),
new TestPolyStruct(Boolean.TRUE)),
new Any(
new Type("test.testtools.bridgetest.TestPolyStruct<any>"),
new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE))),
null });
Constructors2.create1(
context,
new TestPolyStruct(Type.LONG),
new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE)),
new TestPolyStruct(new Boolean(true)),
new TestPolyStruct(new Byte(Byte.MIN_VALUE)),
new TestPolyStruct(new Short(Short.MIN_VALUE)),
new TestPolyStruct(new Integer(Integer.MIN_VALUE)),
new TestPolyStruct(new Long(Long.MIN_VALUE)),
new TestPolyStruct(new Character('X')),
new TestPolyStruct("test"),
new TestPolyStruct(new Float(0.123f)),
new TestPolyStruct(new Double(0.456)),
new TestPolyStruct(new com.sun.star.lib.uno.helper.ComponentBase()),
new TestPolyStruct(new com.sun.star.lib.uno.helper.ComponentBase()),
new TestPolyStruct(TestEnum.TWO),
new TestPolyStruct(new TestPolyStruct2(new Character('X'),
new Any(Type.BOOLEAN, Boolean.TRUE))),
new TestPolyStruct(new TestPolyStruct2(new TestPolyStruct2(
new Character('X'), new Any(Type.BOOLEAN, Boolean.TRUE)), "test")),
new TestPolyStruct2("test", new TestPolyStruct2(new Character('X'),
new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE)))),
new TestPolyStruct2( new TestPolyStruct2(new Character('X'),
new Any(Type.BOOLEAN, Boolean.TRUE)), new TestPolyStruct(new Character('X'))),
new TestPolyStruct(new Type[] { Type.LONG}),
new TestPolyStruct(new Any[] { new Any(Type.BOOLEAN, Boolean.TRUE) }),
new TestPolyStruct(new boolean[] {true}),
new TestPolyStruct(new byte[] {Byte.MIN_VALUE}),
new TestPolyStruct(new short[] {Short.MIN_VALUE}),
new TestPolyStruct(new int[] {Integer.MIN_VALUE}),
new TestPolyStruct(new long[] {Long.MIN_VALUE}),
new TestPolyStruct(new char[] {'X'}),
new TestPolyStruct(new String[] {"test"}),
new TestPolyStruct(new float[] {0.123f}),
new TestPolyStruct(new double[] {0.456d}),
new TestPolyStruct(new Object[] {new com.sun.star.lib.uno.helper.ComponentBase()}),
new TestPolyStruct(new com.sun.star.lang.XComponent[] {new com.sun.star.lib.uno.helper.ComponentBase()}),
new TestPolyStruct(new TestEnum[] {TestEnum.TWO}),
new TestPolyStruct(new TestPolyStruct2[] {new TestPolyStruct2(
new Character('X'), new Any[] {new Any(Type.BOOLEAN, Boolean.TRUE)})}),
new TestPolyStruct(new TestPolyStruct2[] {new TestPolyStruct2(
new TestPolyStruct(new Character('X')), new Any[] {new Any(Type.BOOLEAN, Boolean.TRUE)})}),
new TestPolyStruct(new int[][] { new int[] {Integer.MIN_VALUE} }),
new TestPolyStruct[]{ new TestPolyStruct(new Integer(Integer.MIN_VALUE))},
new TestPolyStruct[]{new TestPolyStruct(new TestPolyStruct2(
new Character('X'), new Any(Type.BOOLEAN, Boolean.TRUE)))},
new TestPolyStruct[]{new TestPolyStruct(new TestPolyStruct2(
new TestPolyStruct2(new Character('X'), new Any(Type.BOOLEAN, Boolean.TRUE)), "test"))},
new TestPolyStruct2[]{new TestPolyStruct2("test", new TestPolyStruct2(
new Character('X'), new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE))))},
new TestPolyStruct2[]{new TestPolyStruct2(new TestPolyStruct2(new Character('X'), new Any(
Type.BOOLEAN, Boolean.TRUE)),new TestPolyStruct(new Character('X')))},
new TestPolyStruct[][]{new TestPolyStruct[]{new TestPolyStruct(new Character('X'))}},
new TestPolyStruct[][]{new TestPolyStruct[]{
new TestPolyStruct(new TestPolyStruct2(new Character('X'), new Any(Type.BOOLEAN, Boolean.TRUE)))}},
new TestPolyStruct[][]{new TestPolyStruct[] {new TestPolyStruct(new TestPolyStruct2(
new TestPolyStruct2(new Character('X'),new Any(Type.BOOLEAN, Boolean.TRUE)), "test"))}},
new TestPolyStruct2[][]{new TestPolyStruct2[]{new TestPolyStruct2(
"test", new TestPolyStruct2(new Character('X'),new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE))))}},
new TestPolyStruct2[][]{new TestPolyStruct2[]{new TestPolyStruct2(
new TestPolyStruct2(new Character('X'),new Any(Type.BOOLEAN, Boolean.TRUE)),
new TestPolyStruct(new Character('X')))}});
}