Lines Matching refs:args
37 Object[] args = { new byte[2] }; in main() local
38 cls.getMethod("setByteArray", byte[].class).invoke(null, args); in main()
39 expectEquals(1, ((byte[])args[0])[0]); in main()
42 Object[] args = { new short[2] }; in main() local
43 cls.getMethod("setShortArray", short[].class).invoke(null, args); in main()
44 expectEquals(0x101, ((short[])args[0])[0]); in main()
47 Object[] args = { new char[2] }; in main() local
48 cls.getMethod("setCharArray", char[].class).invoke(null, args); in main()
49 expectEquals(0x101, ((char[])args[0])[0]); in main()
52 Object[] args = { cls.newInstance() }; in main() local
54 cls.getMethod("setByteInstanceField", cls).invoke(null, args); in main()
55 expectEquals(1, cls.getField("staticByteField").getByte(args[0])); in main()
57 cls.getMethod("setShortInstanceField", cls).invoke(null, args); in main()
58 expectEquals(0x101, cls.getField("staticShortField").getShort(args[0])); in main()
60 cls.getMethod("setCharInstanceField", cls).invoke(null, args); in main()
61 expectEquals(0x101, cls.getField("staticCharField").getChar(args[0])); in main()